may error in $GLOBALS variable

Once you've installed phpList Version 2... ask questions here!
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation. This is for Version 2 of phpList (the orange one).

may error in $GLOBALS variable

Postby Shaman2 » 10:12am, Mon 05 Sep, 2011

I long time try to setup phplist to work via cron. Don worked it with parameters -p and so on
I always got message:
Code: Select all
phpList version 2.10.15 (c) 2000-2011 phpList Ltd, http://www.phplist.com
Usage: /home/.../public_html/lists/admin/index.php -p page  [other parameters]


Today I analisys admin\index.php and found that 427 line is

Code: Select all
foreach ($GLOBALS["argv"] as $clinearg) {


but I dont font found $GLOBALS["argv"] any more.
so I change this line to
Code: Select all
foreach ($_SERVER["argv"] as $clinearg) {


and now phplist work via cron.

so my question: $GLOBALS["argv"] is error or not?
Shaman2
phpList newbie
 
Posts: 4
Joined: 9:24pm, Sun 04 Sep, 2011

Return to Question & Problems - after installing

Who is online

Users browsing this forum: No registered users and 1 guest

cron