icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old June 13th, 2007, 1:57 PM   #1 (permalink)
Surpass Fan
Comfy Contributor
 
davotoula's Avatar
 
Joined in Oct 2004
148 posts
Gave thanks: 2
Thanked 2 times
PHP5 on sh60?

I see that PHP5 is available on some servers.

How do I find out if PHP5 is available on "my" server, SH60.

thanks,
david
__________________
David Kaspar | SH60
davotoula is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 13th, 2007, 2:05 PM   #2 (permalink)
Surpass Fan
Comfy Contributor
 
davotoula's Avatar
 
Joined in Oct 2004
148 posts
Gave thanks: 2
Thanked 2 times
I just confirmed php5 is installed with a phpinfo.php5 file.

How can I execute PHP5 script from the command line (SSH)?

So far I have been using
Code:
/usr/local/bin/php
but that is obviously php4


thanks
__________________
David Kaspar | SH60
davotoula is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 13th, 2007, 7:16 PM   #3 (permalink)
minor deity
Super #1
 
Bigjohn's Avatar
 
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
are you running a file from the command line? just put the .php5 extension on it instead of .php
__________________
Proud to be a Surmunity Mod!
XEON PASS60 PASS61
Make a fundamental difference!
My Sites:
Curious about Brewing Beer? Join the community!
>>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax
Get into an Art museum
Victorian London
It's your brain -ON WEB - mybrainhost.com (under development)
What SHOULD Government do? Much Less than it Does!
Bigjohn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 14th, 2007, 5:46 AM   #4 (permalink)
Surpass Fan
Comfy Contributor
 
davotoula's Avatar
 
Joined in Oct 2004
148 posts
Gave thanks: 2
Thanked 2 times
Thanks bigjohn,

I tried that but it didn't work.

In a shell script (command line) I am pointing to a specific php binary and that one is PHP4 for sure. Tested it with
Code:
php -v
".php5" works only on a web server when you have set up the MIME time appropriately.

I have been given the following location by support:
Code:
 /usr/local/php5/bin/php5
but at the moment I cannot access it because I suspect only root has access to it.
__________________
David Kaspar | SH60
davotoula is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On