[PHP] Re: exec problem

2002-08-27 Thread Anders K. Madsen
> I'm getting a value of 0 returned, but from a command line the executable > works fine and does what it is suposed to do is there any other way i can do > this or ami i doing it work ?? Well, as far as I know, command-line returnes 0 on success and other on failure. So if your exec ( $command,

[PHP] Re: exec problem

2002-08-09 Thread Bogdan Stancescu
If it's internal stuff to your application, you can write in a 777 directory (such as /tmp) and retrieve it from there. If you want to write in a specific directory, you can set up a cron job to copy the file from the 777 directory to wherever you please from time to time. I'm not aware of any

[PHP] Re: exec problem

2001-08-01 Thread Richard Lynch
> Hi I'm trying to create a script which my cron will run once a day to backup > my MySQL database, but the exec command doesn't want to work no matter what I > try... Uh. cron + PHP is cool, but using cron to run PHP to run mysqldump is kinda silly... :-) Just put the mysqldump line in you

[PHP] Re: exec problem

2001-07-31 Thread Steve Brett
if you have a shell account write a batch file and install it in the crontab of the user whihc mysql runs under. i did this at work for a postgresql database and it owrks perfectly. something like this will work. crontab -u -e add: 30 7-19/2,23 * * * /backup/dumpit which runs /backup/dumpit