You are here: PHP Output... or lack thereof (on first time PHP Install) « PHP Programming Language « IT news, forums, messages
PHP Output... or lack thereof (on first time PHP Install)

Posted by Warren Peace on 01/05/07 02:10

'Tis my first time trying to install PHP on my Win XP machine...
Apache/2.2.3(Win32) PHP/5.2.0

Main problem is that with my lack of PHP experience,
I'm not sure if my syntax is incorrect, or if there was a problem with
my PHP/Apache Install

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I do get PHP output if I use a simple block of code like

<html>
<body></body>
<head>
<title>Test</title>
</head>
Today is <?php print strftime("%m/%d/%Y"); ?>
</a>
</html>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My output was: Today is 01/04/2007
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I do not get PHP output if I use code that I copied and pasted from a
guide for PHP5

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<p>This is an HTML line
<?php
echo "<p>This is a PHP line</p>";
phpinfo();
?>
</body>
</html>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
the result from that file when loaded in a browser was absolutely
nothing!
Also, if I try to view the source code from this file after it's been
displayed in my browser
It is completely empty also!
~~~~~~~~~~~~~~~~~~~~~~~~~~~

If it helps you to know how I installed, continue reading!!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

My apache server has been running perfectly fine for a few months now,
just for serving basic HTML and the like.

When I installed PHP,
I chose the install option for an Apache 2.2x server,
told it where Apache was installed on my system, and where the /conf
directory was...
it seemed like it went smoothly by updating my httpd.conf file with the
following info

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:\PHP\"
LoadModule php5_module

"C:\PHP\php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

I've restarted my system since then, and the actual apache service

I've also tried following directions on how to configure Apache
manually for use of PHP, following directions from the following site
http://www.tanguay.info/wamp/installPhp5.php5?step=6
the only exceptions being, modified directory paths, and the lack of
the extensions folder... because I was under the impression that I'm
not using any extensions.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Thanks for making it all the way through this
I hope somebody can shed some light as to what I'm doing incorrectly!!!!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация