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
Share on other sites

Ok yeah...php can't find the .ini file because it it saying C:\WINDOWS...

 

But as soon as I put my php.ini file in there, it causes apache to not read php pages anymore...am I putting it in the wrong location or something?

Link to comment
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.