Hi All, I have a PHP script that I need to call from both web browsers & from a crontab but whichever route I choose I hit a problem. Here are the options I have tried along with problems encountered...
PHP --------- /usr/bin/php /home/sites/home/web/schedules/index.php arg1 arg2 arg3 After resolving include path issues using ini_set() I get... Call to undefined function: mysql_connect(). I assume that all mysql functions are unavailable?? curl --------- /usr/bin/curl -u username:password http://www.domain.com/script.php?arg1=a&arg2=b&arg3=c This gives me a PHP error... Undefined index: arg2 Only the first argument is available wget --------- /usr/bin/wget --http-user=username --http-passwd=password http://www.domain.com/script.php?arg1=a&arg2=b&arg3=c This does not give an error but gives a message... `index.php?fuseaction=NewMembers.1' saved [557] Again it looks like query string is ignored. The database changes and email report that are supposed to occur on successful execution are unavailable! lynx --------- /usr/bin/lynx -dump -auth=username:password http://www.domain.com/script.php?arg1=a&arg2=b&arg3=c This gives me a PHP error... Undefined index: arg2 Only the first argument is available again! Any ideas anyone? TIA - Phil. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.705 / Virus Database: 461 - Release Date: 12/06/2004 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php