So I added a php.ini file to my directory because some of the server defaults were a bit too insecure for my liking (what can you expect with shared hosting). The file itself is simple, just 3 directives
max_execution_time:300
register_globals = Off
disable_functions = system, exec
Now for some reason this is preventing part of a text editing script of mine from running:
if(!$form) $form = "none";
if($form == "style")
{
$file = "memberstyle.css";
}
elseif($form == "about")
{
$file = "about.txt";
}
elseif($form == "contact")
{
$file = "contact.txt";
}
elseif($form == "archive")
{
$file = "archive.txt";
}
else
{
die("Error: Form not properly submitted");
}
$form is set via the url. I keep getting the die error.
The only possibility I can imagine is that having register_globals off is not letting me retrieve this variable from the URL. Is register_globals the likely cause? If so, is there any way I can get it to work without turning register_globals back on?