RE: [PHP] Doing a Multiple Search

2003-03-04 Thread Justin Michael Couto
Hunter, What you need to do is this: $Query="SELECT * from $TableName WHERE lastname='$Array[lastname]' OR firstname='$Array[firstname]' "; That will get the functionality you are looking for. You might also want to consider doing this: $Query="SELECT * from $TableName WHERE lastname LIKE '$A

[PHP] Still no luck running a PHPCLI script from CRON -- getting closer

2003-03-03 Thread Justin Michael Couto
is wouldn't not happen as root but does as a non root user? thanks Justin Michael Couto[EMAIL PROTECTED] Director of Operations 805.781.0420 Somnio World Web Solutions http://www.somnioworld.com -Original Message- From: Tom Rogers [mailto:[EM

RE: [PHP] Still no luck running a PHPCLI script from CRON

2003-03-03 Thread Justin Michael Couto
Dan, I used your example exactly like you have it specified. My cron log looks like this: Mar 3 15:53:00 prod /usr/sbin/cron[3085]: (root) CMD (/usr/local/contab-scripts/wibble.php) Mar 3 15:54:00 prod /usr/sbin/cron[3085]: (root) CMD (/usr/local/contab-scripts/wibble.php) However, it does n

[PHP] Still no luck running a PHPCLI script from CRON

2003-03-03 Thread Justin Michael Couto
full path to php for cron. JMC>> something like: JMC>> 40 * * * * /usr/local/bin/php -q /home/user/phpcliscript JMC>> Hope this helps. JMC>> At 10:10 AM 2/28/2003 -0800, you wrote: >>>The path is >>> >>>#!/usr/local/bin/php -q >>>

RE: [PHP] Still no luck running a PHPCLI script from CRON

2003-03-02 Thread Justin Michael Couto
gt;But like I said, that can't be the problem because when I run it from >>the command line, it runs fine. The only problem I am having is that JMC> it >>won't run from cron. That is why I think it is an issue with the cron >>environment. All other types of scripts l

[PHP] Still no luck running a PHPCLI script from CRON

2003-03-02 Thread Justin Michael Couto
problem I am having is that it >won't run from cron. That is why I think it is an issue with the cron >environment. All other types of scripts like bash scripts run fine from >cron. I am surprised no one else has come across this problem before. > >Please help me! > >

RE: [PHP] Can't run PHP cli script from Cron

2003-02-28 Thread Justin Michael Couto
ine, it runs fine. The only problem I am having is that it >won't run from cron. That is why I think it is an issue with the cron >environment. All other types of scripts like bash scripts run fine from >cron. I am surprised no one else has come across this problem before. &g

RE: [PHP] Can't run PHP cli script from Cron

2003-02-28 Thread Justin Michael Couto
ripts like bash scripts run fine from cron. I am surprised no one else has come across this problem before. Please help me! Justin Michael Couto[EMAIL PROTECTED] Director of Operations 805.781.0420 Somnio World Web Solutions http://www.somnioworld.com ---

RE: [PHP] Can't run PHP cli script from Cron

2003-02-28 Thread Justin Michael Couto
cron environment, but I am not ssure what it is. Justin Michael Couto[EMAIL PROTECTED] Director of Operations 805.781.0420 Somnio World Web Solutions http://www.somnioworld.com -Original Message- From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED]

[PHP] Can't run PHP cli script from Cron

2003-02-27 Thread Justin Michael Couto
I am trying to run a PHP CLI script from cron using PHP 4.3 and FreeBSD 5.0 This is what I have verified: My clock is set right I can run bash scripts from cron I have tried running the script as root and as other users If I run the PHP CLI script by had it works fine I set cron to run the scri