Jump to content

[SOLVED] a simple straight forward question about seeing what version is running


Recommended Posts

If I just did phpinfo(); and phpinfo('cgi'); and they both show php 4 info pages.

 

Does this GUARANTEE me that the web hosting company hosting our web pages is running php 4?? He says he is running 4 and 5 but I am starting to disagree.

Link to comment
Share on other sites

thanks ...........that pulled up the php 5 info. so I just figured out I need to rename my php extensionsions to .php5 for it to work on the web server in production but for my local machine for testing I need it to be .php for it to run.  Can I fix this anyway? Or what would be the easist wat you can recommend?

Link to comment
Share on other sites

there's an apache setting in the httpd.conf file that tells the server what extensions to look for and what to parse them with.  if you add .php5 to the mix in your local server, you can keep all files named .php5 and have them test the same (assuming the same PHP5 versions are running), be they local or host-run.

 

unfortunately you're stuck with that setting on your host, unless you buy a VPS.

Link to comment
Share on other sites

there's an apache setting in the httpd.conf file that tells the server what extensions to look for and what to parse them with.  if you add .php5 to the mix in your local server, you can keep all files named .php5 and have them test the same (assuming the same PHP5 versions are running), be they local or host-run.

 

unfortunately you're stuck with that setting on your host, unless you buy a VPS.

yeah, I figured I would have to make some changes to my server

 

is this where I would add the .php5 .....

AddType text/html .php .phps .php5

AddHandler application/x-httpd-php .php .php5

 

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.