FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Is there an executable PHP and where?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Is there an executable PHP and where? [message #11362] Thu, 26 June 2003 19:27 Go to next message
stevie is currently offline  stevie   United States
Messages: 35
Registered: May 2003
Location: Boston area, USA
Karma: 0
Member
Using the maillist.php script requires the server to have an executable version of PHP and requires the user to know its location.

Is there a simple php script I can run from the web server to authenticate whether or not I have the correct location of an executable version of PHP? Thanks for any advice. -Steve

Re: Is there an executable PHP and where? [message #11363 is a reply to message #11362] Thu, 26 June 2003 19:32 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
run:
which php


FUDforum Core Developer
Re: Is there an executable PHP and where? [message #11365 is a reply to message #11362] Thu, 26 June 2003 19:45 Go to previous messageGo to next message
stevie is currently offline  stevie   United States
Messages: 35
Registered: May 2003
Location: Boston area, USA
Karma: 0
Member
I don't have shell access, so I couldn't just enter "which php".

I tried a web page like this:

<?php
echo shell_exec("which php");
?>


and it sends this to the web browser:

/usr/local/bin/php

So I guess I do in fact have an executable PHP, and this is the location. Does that seem right? Thanks. -Steve
Re: Is there an executable PHP and where? [message #11369 is a reply to message #11365] Thu, 26 June 2003 19:56 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
That looks correct, that is the default path where the php binary can be found. You can test it by doing
<?php
shell_exec
("/usr/local/bin/php -i");
?>


FUDforum Core Developer
Re: Is there an executable PHP and where? [message #11373 is a reply to message #11369] Thu, 26 June 2003 20:00 Go to previous messageGo to next message
stevie is currently offline  stevie   United States
Messages: 35
Registered: May 2003
Location: Boston area, USA
Karma: 0
Member
Cool! Looks like I have v4.3.2, that's pretty current I guess? Should be ok for maillist.php? Thanks. -Steve
Re: Is there an executable PHP and where? [message #11380 is a reply to message #11373] Thu, 26 June 2003 20:37 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
That should be perfectly fine.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: relationship between procmailrc file and maillist.php script?
Next Topic: Alter Topic Settings
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 16:59:53 GMT 2024

Total time taken to generate the page: 0.02600 seconds