NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
PHP5 php.ini file


Joined: 07 Jul 2009
Posts: 3
Reply with quote
How do I make sure that, in "Run" mode, my code is running as PHP5?

Can I install a php5.ini file?
View user's profileFind all posts by sfpaulSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
I'm not sure I get what you want to know but you can see the php version by either doing an "echo phpversion();" or by just calling phpinfo(); from your code. Both will contain the version number for the php that is running your code.
View user's profileFind all posts by BlizzSend private messageVisit poster's website
PHP5


Joined: 07 Jul 2009
Posts: 3
Reply with quote
Thank you for your response. I need to set allow_url_fopen "on" and understand that I need to do that thru php5.ini. Can I set up a php5.ini file?
View user's profileFind all posts by sfpaulSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
PHP always uses an INI file. Trick is to find out which one it is using. Just run a file with phpinfo(); in and the output will tell you the location of that file ("Loaded configuration file" in the first box).
View user's profileFind all posts by BlizzSend private messageVisit poster's website


Joined: 09 Jul 2009
Posts: 13
Reply with quote
-- or --

If you can access PHP from the command line and run it that way (I often write command line stuff with PHP) you can run the command: php --ini

It will show you all of the ini files that php is loading when it is initialized.
View user's profileFind all posts by killermonkSend private message
PHP5 php.ini file
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic