Jump to content

php.ini not in c:\winnt


rondog

Recommended Posts

Hi,

I have php 5.2.3 installed on a win2k machine with IIS. It is working because I can see phpinfo();

 

My problem is there is no php.ini file in c:\WINNT which is what phpinfo says for my configuration path. There is a php.ini folder in c:\php where I installed it. I tried copying php.ini into that folder and then it just displays <? phpinfo(); ?>

 

Where is phpinfo reading this stuff from?? I cant find the file to edit it.

 

http://movfactory.com/phpinfo.php

 

Thanks for any help.

-Ronnie

Link to comment
https://forums.phpfreaks.com/topic/62120-phpini-not-in-cwinnt/
Share on other sites

what do you mean you dont have to have one? php.ini contains all the php settings..and I tried moving php.ini into c:\winnt and when I load up phpinfo it displays <? phpinfo(); ?> and doesnt work

 

I did the search..all it found was php.ini inside c:\php

Link to comment
https://forums.phpfreaks.com/topic/62120-phpini-not-in-cwinnt/#findComment-309337
Share on other sites

IF the configuration path line is set to C:/WINNT then it is not reading any php.ini configuration file. Only when it is set a full path and has php.ini added onto the end of it, eg: C:/WINNT/php.ini then PHP is reading that php.ini file.

 

I would recommend you to add the php folder to the Windows PATH. PHP should then be able to read the php.ini inside C:\php. For adding the php to the path please This PHP FAQ.

 

Also you should use the full PHP tags syntax (<?php  ?>) and not shorthand PHP syntax (<? ?> or <?= ?>)as by default PHP has short tags disabled. Also coding in full PHP tags syntax allows for your code to be more portable.

 

Link to comment
https://forums.phpfreaks.com/topic/62120-phpini-not-in-cwinnt/#findComment-309520
Share on other sites

Also you should use the full PHP tags syntax (<?php  ?>) and not shorthand PHP syntax (<? ?> or <?= ?>)as by default PHP has short tags disabled. Also coding in full PHP tags syntax allows for your code to be more portable.

 

And it triggers syntax highlighting within the

-tags on this forum... 
Link to comment
https://forums.phpfreaks.com/topic/62120-phpini-not-in-cwinnt/#findComment-309527
Share on other sites

IF the configuration path line is set to C:/WINNT then it is not reading any php.ini configuration file. Only when it is set a full path and has php.ini added onto the end of it, eg: C:/WINNT/php.ini then PHP is reading that php.ini file.

 

I would recommend you to add the php folder to the Windows PATH. PHP should then be able to read the php.ini inside C:\php. For adding the php to the path please This PHP FAQ.

 

Also you should use the full PHP tags syntax (<?php  ?>) and not shorthand PHP syntax (<? ?> or <?= ?>)as by default PHP has short tags disabled. Also coding in full PHP tags syntax allows for your code to be more portable.

 

 

I was going to add php to the windows path and add ;C:/php, but it was already there and in the very front. So any more suggestions?

Link to comment
https://forums.phpfreaks.com/topic/62120-phpini-not-in-cwinnt/#findComment-311016
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.