cron.php
Paulo Sampaio
paulo.vicente.neto at gmail.com
Sun May 6 15:53:19 UTC 2012
You have two options:
- Use wget to access the page:
$ wget -O /dev/null http://localhost/my_php_script.php
- Use the php command line interface:
You will need the php-cli package installed, it's default.
$ php5 /var/www/my_php_script.php
There are other options, but the above can do the trick for you =]
Atenciosamente,
__
*Paulo Sampaio**
*
*http://devio.us/~psampaio/*
2012/5/6 Patrick Asselman <iceblink at seti.nl>
> On Sun, 6 May 2012 07:26:16 -0700, Thufir wrote:
>
>> is the a particular "cron.php" which manages php cron jobs or similar?
>> Is there a particular syntax for PHP cron, something like:
>>
>>
>> 1 * * * * /home/thufir/foo.php 1
>>
>>
>> or do you need a different syntax to make that run?
>>
>>
>>
>> thanks,
>>
>> Thufir
>>
>
> A .php file is not executable by itself. You may want to do "/usr/bin/php
> -f /home/thufir/foo.php".
> Best to try that manually at first, before putting it in the crontab, just
> to see if it works. (If it is a php file that is supposed to be accessed
> via the web server, it will probably not work.)
>
> Best regards,
> Patrick Asselman
>
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/**
> mailman/listinfo/ubuntu-users<https://lists.ubuntu.com/mailman/listinfo/ubuntu-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20120506/0627cf76/attachment.html>
More information about the ubuntu-users
mailing list