> On Mon, 14 Jun 2004 12:10:30 +0100 > "Phil Ewington - 43 Plc" <[EMAIL PROTECTED]> wrote: > > > 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?? > > Is your commandline php executable compiled --with-mysql ?
My PHP installation (4.3.6) was configured with: with-mysql=shared > > > curl > > --------- > > /usr/bin/curl -u username:password > > http://www.domain.com/script.php?arg1=a&arg2=b&arg3=c > > When issuing commands through bash (or alike) you need to > surround the string > with double-quotes ("), because & is a bash-operator, meaning "put into > background". With the command above you will execute "/usr/bin/curl -u > username:password http://www.domain.com/script.php?arg1=a" in the > background, > "arg2=b" in the background, and "arg3=c" in the foreground ;) That worked a treat! Thanks. > > The correct command is: > /usr/bin/curl -u username:password > "http://www.domain.com/script.php?arg1=a&arg2=b&arg3=c" > > This also applies to wget, lynx and all other commandline tools > you can imagine > ;-) > > -- > Dennis Freise <[EMAIL PROTECTED]> > GnuPG key: 2DE8 CCEF 6E20 11D4 3B27 21EC B0BA 1749 D2C8 38ED > Available at: http://www.final-frontier.ath.cx/?key-plain > --- 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