configuration??problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
GAHeuss
Forum Newbie
Posts: 2
Joined: Tue Jun 11, 2002 7:33 pm

configuration??problem

Post by GAHeuss »

I am new to this php bit and am trying to make php run on a localhost running apache for win32. I believe I have my paths correct I am running the php in the cgi-bin of apache running on "G" drive on my machine. When I type "http://localhost/test.php" with a test.php page in the htdocs folder of apache I get a blank HTML page back without executing any script in the test page. Help!!!

Gil Heuss
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

have you tried

Code: Select all

<?php phpinfo(); ?>
?
GAHeuss
Forum Newbie
Posts: 2
Joined: Tue Jun 11, 2002 7:33 pm

Post by GAHeuss »

Where should I put that? I tried putting it in the "test.php" document and I get the same results.

Gil Heuss
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

make a new php-script where the only line is
<?php phpinfo(); ?>
if the page still remains blank take a look in the error.logs (<apache-dir>/logs/error.log and system-error-log, on windows this is the event viewer) may be a error occured
And also look at the source-code in your web-browser. If you see the php-source there your apache server did not recognize the file-extension you use and scripts are not parsed but sent directly to the browser.

Which OS?
Post Reply