Fatal Error

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
captjdl
Posts: 3
Joined: Sat Jun 02, 2007 3:29 pm
Contact:

Fatal Error

Post by captjdl »

I have Rapid PHP 2007 8.0 running all apache services. When I go to preview a saved index.php page I get the following error.
FATAL ERROR: register_globals is disabled in php.ini, please enable it!
I have no idea what or where this is?
I am very new to PHP so be easy with me!
Capt Jim
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

Register globals means that you can access passed parameters 'directly' - eg, if you have the URL, 'mypage.php&harry=male', then there would be a $harry variable, which would contain 'male'.

Security wise, this is now discouraged, so the default setting of it off should be kept.
Does it do this for all .php files, or just this one you're testing? eg, create a .php file that contains <?php echo "test"; ?> and see if that works.
captjdl
Posts: 3
Joined: Sat Jun 02, 2007 3:29 pm
Contact:

Fatal Error

Post by captjdl »

Thank you it was just on the page I was trying to test and I used the <php> and that worked thank you.
Cary
Posts: 82
Joined: Mon May 28, 2007 10:41 pm

Post by Cary »

Instead of using a variable like $name, for instance, use {$_POST['name']} or {$_GET['name']} instead, depending on whether you used Get or Post to pass the variable.

Or before using $name you could have

$name=$_POST['name'];
Post Reply