On Sun, 14 Sep 2003, R P Herrold wrote:

> On Sat, 13 Sep 2003, Kalin Mintchev wrote:
>
> > are you on RH8?
>
> This code works on RHL 7.3, 8, 9 and the existing RHL beta, as
> well as RHAS 2.1 and RHEL beta

that's cool...it doesn't work on this one... RH8.

now a new problem - a script that writes to a file works from the command
line but it doesn't from the cron.....

the cron entry is like:

*/5 * * * * root /usr/local/bin/php /path/to/my/script/script.php

this prints out the output in the email sent to root but it doesn't open
and write to the file it should...

from command line the same command as root works fine.....

so i really don't get it by now..... and am very pissed...


>
> > > bash-2.05b$ cat preenTelNum.php
> > > #!/usr/bin/php -c/etc
> > > <?php
> > > //
> > > //        Clean the dialling database
> > > //
> > > //       Copyright (c) 2002 Owl River Company
> > > //       [EMAIL PROTECTED]
> > > //
> > > //      Get the database keying
> > > //
> > > $db_server = "10.20.30.40";
> > > $db_user   = "telephone";
> > > $db_passwd = "secret";
> > > $db_name   = "listing";
> > > //
> > > $link = mysql_connect($db_server, $db_user, $db_passwd)
> > >         or die("Could not connect to $db_server as $db_user \n");
> > > //
> > > $isdb = mysql_select_db($db_name)
> > >         or die("Could not get database $db_name \n");
>
>
>


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to