RE: Need to Run a PHP script using CRON or ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:  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...

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux