Hi
I'm trying to run nntp.php in the shell.
As I'm not the httpd user I copied the file to nntp_1.php which is chmoded 777.
I execute it with:
./nntp_1.php 2
I get fallowing error:
PHP Notice: Undefined index: argc in /home/andress/fudforum/scripts/nntp_1.php on line 22
<br />
<b>Notice</b>: Undefined index: argc in <b>/home/andress/fudforum/scripts/nntp_1.php</b> on line <b>22</b></br />
Missing Forum ID Paramater
register_globals is on
register_argc_argv is off
PHP 4.22
I've traced the error and it's the first if statement:
if( $HTTP_SERVER_VARS['argc'] < 2 ) exit("Missing Forum ID Paramater\n");
I changed it to:
if( $_SERVER['argc'] < 2 ) exit("Missing Forum ID Paramater\n");
But that didn't help.
I've tested if there's anything in argv[0], but it's empty.
Could you help me please?
Thanks - Andy