Web Hosting Talk







View Full Version : phpinfo() vs. php -v


SPaReK
05-08-2002, 01:53 PM
Our servers were recently upgraded to PHP version 4 . When you create a php page with the phpinfo() function, it reports version 4.0.4pl1 but through the command line, running "php -v" says php version 4.1.2 . The network administrators insist that version 4.1.2 is the correct version, but it looks as if the php pages are being parsed through version 4.0.4pl1 . Which one is correct? Was there an upgrade to 4.1.2 from 4.0.4pl1 ? Would that be causing the discrepances?

Thanks

VeriCentric
05-08-2002, 02:12 PM
It looks like the CGI executable was upgraded, but the web server module was not.

Basically, PHP can be compiled as a server module, or a stand alone commandline executable. From what you said the command line version was upgraded, but it has nothing to do with the server module version. Show them a phpinfo() page that displays the old version and it should be all the proof they need to know it's not upgraded.

jw
05-08-2002, 04:46 PM
Tell your network administrators to compile --with-apache or --with-apxs to upgrade the mod_php