Help - Search - Members - Calendar
Full Version: PHP CGI binary
Hostony Board > General Support > General Support
Barrin!
what is the path to the PHP CGI binary?
MartinB
/usr/bin/php ?
Barrin!
Yeah, thats what I thought.. but there is no such path. Is it there anyway or something..? Do i have to set it up?
JasonJones
/usr/local/bin/php

It should be in /usr/bin/php as well...
hope that helps.
Barrin!
It does..

Are these folders hidden? I can't see them.

Let me elaborate on the real problem here...
Lets say I wanted to run a php script named x.php every 10 minutes on my server using a cron job. What exactly would I use as the command? Do I use the PHP CGI binary for this?
MartinB
QUOTE(Barrin! @ Oct 10 2005, 10:55 PM)
It does..

Are these folders hidden? I can't see them.

Let me elaborate on the real problem here...
Lets say I wanted to run a php script named x.php every 10 minutes on my server using a cron job. What exactly would I use as the command? Do I use the PHP CGI binary for this?
*



i use:

CODE
/usr/bin/php /absolute_path_2_folder_where_your_script_is/script.php


try with the path providen by Jason too.

Or add the follow at the top of your php script:

CODE
#!/usr/local/bin/php -q
<?php
.....


make it executable, and then run it with the full path, as a command, like:

CODE
/home/user/path2file/script.php
Barrin!
That was the exact post I needed to see. Thanks smile.gif
MartinB
QUOTE(Barrin! @ Oct 11 2005, 12:04 AM)
That was the exact post I needed to see. Thanks smile.gif
*


You're welcome smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here