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

Home » FUDforum » How To » NNTP.PHP without PHP-binary
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: NNTP.PHP without PHP-binary [message #6970 is a reply to message #6966] Wed, 30 October 2002 12:34 Go to previous messageGo to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma:
Senior Member
Administrator
Core Developer
If you are going to be running it via the web you need to remove the 1st line of the script. and pass the required arugment like this: nntp.php?argv1=1

Then you need to modify the script itself and change the following:
 if( $HTTP_SERVER_VARS['argc'] < 2 ) exit("Missing Forum ID Paramater\n");
        if( !is_numeric($HTTP_SERVER_VARS['argv'][1]) ) exit("Missing Forum ID Paramater\n");

        /* Switch to the scripts directory */
        chdir(dirname($HTTP_SERVER_VARS['argv'][0]));


The code you need to change this too will need to set appropriate values to:
$HTTP_SERVER_VARS['argc'] - number of arguments (2)
$HTTP_SERVER_VARS['argv'][1] - the numeric argument (argv1)
$HTTP_SERVER_VARS['argv'][0] - full path to current script


FUDforum Core Developer
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Newsgroup import
Next Topic: MySQL Tables
Goto Forum:
  

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

Current Time: Wed Nov 27 20:41:53 GMT 2024

Total time taken to generate the page: 0.05367 seconds