RE: [PHP] Printing using php script CRON
| From: | Jay Blanchard | Date: | Tue, 27 Jul 2004 13:06:01 +0000 |
| Subject: | RE: [PHP] Printing using php script CRON | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-191968@lists.php.net to get a copy of this message | ||
[snip]
One would think this should be really simple but it's not.
I need to retrieve the file somewhere on the internet. I read somewhere
in
order to read a php script's output you need to add the "php" command in
front, as such:
php http://yoursite.com/cronjob.php | lpr -P hp1300n
however I am getting the following error:
Status: 404 suggesting that the page doesn't exist, however it does. Is
there something I am missing here?
[/snip]
You are trying to run a PHP script on a remote site? Have a look at cURL
http://www.php.net/curl