FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » nntp.php & register_argc_argv off
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
nntp.php & register_argc_argv off [message #6125] Wed, 02 October 2002 17:00 Go to previous message
valiant is currently offline  valiant   Switzerland
Messages: 80
Registered: September 2002
Location: Zurich
Karma:
Member
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How do i create a DataBase?
Next Topic: can't run Rebuild Theme:(
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 11:45:49 GMT 2024

Total time taken to generate the page: 0.03669 seconds