RE: [PHP-DB] Need to Run a PHP script using CRON or ?
| From: | Ryan Marks | Date: | Mon, 15 Sep 2003 20:56:24 +0000 |
| Subject: | RE: [PHP-DB] Need to Run a PHP script using CRON or ? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-30515@lists.php.net to get a copy of this message | ||
My bad... wget does require http or ftp protocol and a hostname that can be
resolved by the server.
-----Original Message-----
From: CPT John W. Holmes [mailto:holmes072000@charter.net]
Sent: Monday, September 15, 2003 3:47 PM
To: Ryan Marks; jvilla@isdesigndev.com; php-db@lists.php.net
Subject: Re: [PHP-DB] Need to Run a PHP script using CRON or ?
From: "Ryan Marks" <ryan@bestdriverjobs.com>
> Not necessarily. You can wget /path/to/file.php or my personal preference
> is not to use wget, but php directly
> /path/to/php/executable /path/to/file.php
Are you sure about that? I thought wget had to go through HTTP?
This didn't work for me, am I doing it wrong?
$ ls
cpanel3-skel mail public_html tmp
cpanelbranding public_ftp test.php www
$ wget test.php
--16:42:22-- http://test.php/
=> `index.html'
Resolving test.php... failed: No address associated with hostname.
---John Holmes...