Jump to content

The php.ini file


Heero

Recommended Posts

Hi,

 

I am really bummed on this one issue with my php.ini file.  When I place a php.ini file in the C:/windows directory it causes my apache server to be unable to read php files...however as soon as I remove the php.ini file the apache server can again read php files.

 

I am completely shocked with what is going on...additionally running the code phpinfo() when the php.ini file does not exist in the directory results in it saying that the Configuration File (php.ini) Path is C:\WINDOWS...even though the file doesn't even exist!

 

Can anyone help me here?

 

 

Link to comment
https://forums.phpfreaks.com/topic/48906-the-phpini-file/
Share on other sites

I finally figured out what was wrong...really dumb.

 

PHP 5.0.2 has the short tag configuration on the php.ini turned off by default.  So in my phpinfo.php file I had the following code:

 

<? phpinfo(); ?>

 

It was not running this code, thus I automatically assumed that the Apache sever was not reading php files.  Stupid me.

Link to comment
https://forums.phpfreaks.com/topic/48906-the-phpini-file/#findComment-241291
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.