Jump to content

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


Recommended Posts

i believe for hosts that offer 4 AND 5, you need to change the extension of one or the other (usually 5) to invoke the version parser of your choice.  try renaming your phpinfo file to .php5 and see what it says then.

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?

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.

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

 

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.