php version

php version

Posted by: shen
Posted on: 2006-11-06 16:52:00

after switching to php 5.0 in panel.dreamhost.com, when I entered php -version in a ssh session, it still show php 4.4.2?

Re: php version

Posted by: sdayman
Posted on: 2006-11-06 17:01:00

Command line environment is different from webserver environment. If you created a test.php file with the following:
<?php
echo phpversion();
echo "n";
?>

And visited test.php with your browser, you'll see that it's PHP5.

-Scott

Re: php version

Posted by: shen
Posted on: 2006-11-06 17:03:00

thank you,
btw, do you know if dreamhost supports php soap?

Re: php version

Posted by: sdayman
Posted on: 2006-11-06 17:20:00

The servers support SOAP, but I'm not sure about PHP. Though you can always compile your own PHP with a SOAP config.

http://wiki.dreamhost.com/index.php/Special:Search?search=soap&go=Go

-Scott

Tags: php versionssh sessiondreamhostphp 5php 4