Posted on: 11/14/05 12:20pm
By: ::Ben
Bonjour
Excuse me for my language.
When I set the cron for emailgeeklogstories I receive everyday a email with the following texte
Usage: php [options] [-f] <file> [args...]
php [options] -r <code> [args...]
php [options] [-- args...]
-a Run interactively
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-f <file> Parse <file>.
-h This help
-i PHP information
-l Syntax check only (lint)
-m Show compiled in modules
-r <code> Run PHP <code> without using script tags <?..?>
-s Display colour syntax highlighted source.
-v Version number
-w Display source with stripped comments and whitespace.
-z <file> Load Zend extension <file>.
args... Arguments passed to script. Use -- args when first argument
starts with - or script is read from stdin
May be a problem with php (Php is 4.4.0).
Someone can tell me what can I do to resolve it?
Thank You.
Ben.
emailgeeklogstories and php
Posted on: 11/14/05 01:47pm
By: ByteEnable
Your cron command should like this:
php -q /path/to/your/geeklog/emailgeeklogstories
Regards,
Byte
emailgeeklogstories and php
Posted on: 11/14/05 02:35pm
By: Dirk
Your PHP version doesn't seem to like the -q parameter (see the first line of the emailgeeklogstories file). Try removing it.
bye, Dirk
emailgeeklogstories and php
Posted on: 11/14/05 05:33pm
By: ::Ben
Thank you misters. Sorry and I'm confused, it was a problem of patch
Everything seems to be ok now.
I received 2 emails. One with the stories and the other from cron with warnings
Warning: Cannot modify header information - headers already sent by (output started at /home/site/public_html/emailgeeklogstories:3) in /home/site/public_html/system/lib-sessions.php on line 189
Warning: Cannot modify header information - headers already sent by (output started at /home/site/public_html/emailgeeklogstories:3) in /home/site/public_html/system/lib-sessions.php on line 201
Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /home/site/public_html/plugins/stats/functions.inc on line 341
What thinking about those warnings?
Ben.