Jump to content

PHP configuration issue


Recommended Posts

I am running Apache2.2 on Windows XP and I just installed php5. 

 

I added these lines the the Apache config file:

 

PHPIniDir "C:/php/"

LoadModule php5_module "C:/php/php5apache2_2.dll"

AddType application/x-httpd-php .php

 

I uncommented the MySQL extension and added this to php.ini:

doc_root ="C:\Apache2.2\htdocs"

 

I made a file that simply runs the phpinfo() function to test whether or not the installation was

successful and all that came up was a blank screen.  I looked on the internet for common installation issues thinking php was not working, but then I made a few other test scripts that worked:

 

<?php

$x=1;

$x=$x+3;

print "$x is what x is equal to";

?>

 

<?php

print "HEllo world";

?>

 

My question is why would there be a blank screen for phpinfo().  I also get a blank screen when I make calls to session variables, even when there is html following the offending php. I am not totally sure if this is the correct forum since PHP is technically installed.  But I thought maybe I installed or configured something incorrectly?  I appreciate any help in advance. 

 

 

Link to comment
https://forums.phpfreaks.com/topic/56486-php-configuration-issue/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.