mrsander7x Posted January 11, 2007 Share Posted January 11, 2007 I'm not new to the php programming language by any means, but this is my first time installing PHP and Apache.I'm working with Windows XP. I downloaded Apache2.2.3 and it is working fine, but after installing PHP5.2.0, I tried to view a PHP file (date display page) and all it gave me was a blank screen. To be specific... shows everything EXCEPT the php.For example, the script[i]<html><head><title>Testing PHP</title></head><body><? print(Date("l F d, Y")); ?>Hopefully this works<p>This is frustrating!</body></html>[/i]displays[i]Hopefully this worksThis is frustrating! [/i]As for installing PHP and Apache...I added C:\php; to the value of the PATH environment variable.I also added the following to the httpd.conf file:[i]LoadModule php5_module "c:/php/php5apache2_2.dll"AddType application/x-httpd-php .php # configure the path to php.iniPHPIniDir "c:/php"[/i]Finally, i changed the php.ini-recommended file to simply php.ini and changed extension_dir to "C:\php\ext"Is this correct and is there anything i neglected to change?I'm not sure if it helps at all, but when I open the Apache monitor, the dev5_ap1 will not start... it says it can't find the path specified.I've double-checked the code over and over and can't seem to find anything wrong...Thanks Quote Link to comment Share on other sites More sharing options...
trq Posted January 11, 2007 Share Posted January 11, 2007 It could just be that you have short opening tags disabled. Which, IMO is best, try...[code=php:0]<?php print Date("l F d, Y"); ?>[/code] Quote Link to comment Share on other sites More sharing options...
mrsander7x Posted January 11, 2007 Author Share Posted January 11, 2007 ^^ I just tried those and it does exactly the same thing.The php code is still found in the page source, but it's highlighted in pink.? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted January 11, 2007 Share Posted January 11, 2007 When you change the httpd.conf and renamed the php.ini did you restart Apache? You must restart Apache in order for changes to come in to effect. Quote Link to comment Share on other sites More sharing options...
mrsander7x Posted January 11, 2007 Author Share Posted January 11, 2007 Yes, I restarted Apache. I even restarted my computer to make sure the Path variable was still set. Quote Link to comment Share on other sites More sharing options...
mrsander7x Posted January 11, 2007 Author Share Posted January 11, 2007 One more question... are C:/php and c:/php paths the same? Quote Link to comment Share on other sites More sharing options...
hackerkts Posted January 13, 2007 Share Posted January 13, 2007 I think it should be the same, but I always use capital letter. "[b]C[/b]". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.