|
Re: NNTP.PHP without PHP-binary [message #6970 is a reply to message #6966] |
Wed, 30 October 2002 12:34 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
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
|
|
|
|