hi, I cannot get the phpwiki 1.2.4 to run on my server. although It works fine locally.
Access to global variables has been disabled on the server and i do not have permissions to change them.
Is there anything i can do?
i have installed it at http://www.forwind.net/phpwiki2/
We ran a small test on the server using the below php script <? $port = ($_ENV[SERVER_PORT] == 80) ? '' : ":$_ENV[SERVER_PORT]"; $test= 'http://' . $_ENV[SERVER_NAME] . $port . $_ENV[SCRIPT_NAME]; echo '<a href='.$test.'?test>test</a>';
if(isset($_REQUEST['test'])) { echo "<br><br>works"; } ?>
which seemed to access the globals with _ENV in front of all the global names.
does that mean i have to do this throughout the whole wiki folder! yeicks!
anyone help .....
Cj
I'm not sure about all your questions.
However, I believe 1.2.4 requires "register_globals = On", and you might be saying it is Off and you can't change it.
You might try the latest release, 1.3.10.
Dan
>I believe 1.2.4 requires "register_globals = On", and you >might be saying it is Off and you can't change it.
yeah that is the problem.
should 1.3.10 resolve this.
1.3.10 does not require register_globals=On.
Cheers Dan,
Conor
you could also add import_request_variables("GP") at the very start of index.php and admin.php
Log in to post a comment.
hi,
I cannot get the phpwiki 1.2.4 to run on my server. although It works fine locally.
Access to global variables has been disabled on the server and i do not have permissions to change them.
Is there anything i can do?
i have installed it at http://www.forwind.net/phpwiki2/
We ran a small test on the server using the below php script
<?
$port = ($_ENV[SERVER_PORT] == 80) ? '' : ":$_ENV[SERVER_PORT]";
$test= 'http://' . $_ENV[SERVER_NAME] . $port . $_ENV[SCRIPT_NAME];
echo '<a href='.$test.'?test>test</a>';
if(isset($_REQUEST['test']))
{
echo "<br><br>works";
}
?>
which seemed to access the globals with _ENV in front of all the global names.
does that mean i have to do this throughout the whole wiki folder!
yeicks!
anyone help .....
Cj
I'm not sure about all your questions.
However, I believe 1.2.4 requires "register_globals = On", and you might be saying it is Off and you can't change it.
You might try the latest release, 1.3.10.
Dan
>I believe 1.2.4 requires "register_globals = On", and you >might be saying it is Off and you can't change it.
yeah that is the problem.
should 1.3.10 resolve this.
1.3.10 does not require register_globals=On.
Dan
Cheers Dan,
Conor
you could also add
import_request_variables("GP") at the very start of index.php and admin.php