Parameter error

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Hipp
-


Joined: 18 Apr 2006
Posts: 5

PostPosted: Thu Apr 20, 2006 4:44 pm    Post subject: Parameter error Reply with quote

Hi,

perhapps i found an error under x2 or doing something wrong.
I have integrated php as shown in the manual.

I call a php-file with a parameter
<a href="../myfile.php?fct=check'> .

The variable fct in the php-script isn't defined. After i inserted the lines

$tmpfct = $_GET['fct'];
$fct = $tmpfct;

it works fine. Under the apache server of my provider i haven't to insert these two lines. :?:
_________________
Best regards

Hipp
Back to top View user's profile Send private message
olly86
-


Joined: 25 Apr 2003
Posts: 993
Location: Wiltshire, UK

PostPosted: Thu Apr 20, 2006 5:04 pm    Post subject: Reply with quote

I think you're provider must be generating these variables automatically. However, the standard behaver of php is to not create these variables, but to access it through $_GET['fct'].

If you don't want to add those lines to your code, instead of calling the variables using $fct or $tempfct, you can directly access the information through $_GET['fct']. This is not a bug but a slightly different configuration. :)
_________________
Olly
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Apr 21, 2006 9:53 am    Post subject: Re: Parameter error Reply with quote

Hipp,

This is a PHP configuration issue: please read http://www.aprelium.com/forum/viewtopic.php?t=85 for more information.

By the way, the fact that your provider has set register_globals to ON could be a major security issue: please refer to http://www.php.net/register_globals for a more in depth discussion of the possible problems.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group