RE: [PHP] Execute a PHP script from unix (crontab)

From: Date: Wed, 15 Aug 2001 17:21:02 +0000
Subject: RE: [PHP] Execute a PHP script from unix (crontab)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-62876@lists.php.net to get a copy of this message
Why not use the tool built for the job? mysqldump will allow saving both data and structure. http://www.mysql.com/doc/m/y/mysqldump.html -----Original Message----- From: Kunal Jhunjhunwala [mailto:kunal@getmonked.net] Sent: Wednesday, August 15, 2001 11:05 AM To: php-general@lists.php.net Subject: Re: [PHP] Execute a PHP script from unix (crontab) Hi, There are basically two ways of doing this. Use lynx : lynx --dump http_address_to_file or Compile php as a cgi binary. You should select them based on your need. Kunal ----- Original Message ----- From: "Hugh Bothwell" <hugh_bothwell@hotmail.com> To: <php-general@lists.php.net> Sent: Wednesday, August 15, 2001 9:30 PM Subject: Re: [PHP] Execute a PHP script from unix (crontab) > > From: "Augusto Cesar Castoldi" <Augusto.Castoldi@uol.com.br> > > To: <php-general@lists.php.net> > > Sent: Thursday, August 16, 2001 1:04 AM > > Subject: [PHP] Execute a PHP script from unix (crontab) > > > How can I execute a php script from the unix? > > > like perl it's (perl "file"), but in unix we don't have > > > a "executable" of php, it's a module ,right? > > Same idea as Perl, start with a shebang line to tell > it where to find the interpreter: > > #!/usr/local/bin/php > <?php > // your script here... > ?> > > > > I should compile the script first? > > Nope, no need... > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#62876) next »