|  | 
|  | session side-effect and global variables |  | 
|  | 
|  |  | 
| 
   |  | 
 Hello,
 the setting is in your "php.ini" file and looks like this: register_globals = Off Depending on your server installation, there *may* exist multiple "php.ini" files, e.g. in the apache/bin as well as in the php directory (of which the one in the apache/bin is being used if it exists I think - I'm not an admin *g*). Above setting may be changed on your server since you have access, but if you publish your site on a hosted system, you may not be able to change "register_globals". Not sure, if/how above setting is allowed to be changed during runtime (or if it is a security risk if being active), so maybe someone here can provide more insight into this, otherwise google should do.   Cheers, Tobias | |||||||||||
| 
 | |||||||||||||
|  | 
|  | Re: session side-effect and global variables |  | 
| 
   |  | 
 
 Forgot to mention that above settings are also in your php.ini file and look like this: session.bug_compat_42 = 1 session.bug_compat_warn = 1 So you might want to set the last one to "0".   Cheers, Tobias | |||||||||||||
| 
 | |||||||||||||||
|  | 
|  |  | 
| Site Admin 
   |  | 
 register_globals and session.bug_compat_42 are not recommended settings. Please read php manual on why such recommendations are made. | |||||||||||
| 
 | |||||||||||||
|  | 
|  |  | 
| 
   |  | 
 I guess I am more concerned about what I could do differently in my code. I am assuming my wbe server has register_globals set to off  (it uses plesk 7.5).
 Could anyone suggest what it is I am doing to cause the error. | |||||||||||
| 
 | |||||||||||||
|  | 
|  |  | 
| Site Admin 
   |  | 
 "Assume" is a good thing but insufficient    Run phpinfo, locate path to php.ini you system uses, correct this php.ini and you'll be all set. | |||||||||||
| 
 | |||||||||||||
|  | 
|  |  | 
| 
   |  | 
 When I have tried to run phpinfo in the past it has not worked (works fine on my local PC with apache/mysql/php). I think the people who manage the server have disabled it and I can't change that. Also if my php code has any error I get no error messages just a blank screen hence why I wanted to try PHP Debugger to find any problems and I can't change that either. Hence my assumption that if they have gone to these lengths, they also have register_globals off.
 Because I am new to PHP my main question is how can I code things differently so that it doesn't matter if register_globals is off? ie what is it in my code which is wrong. | |||||||||||
| 
 | |||||||||||||
|  | 
|  |  | 
| Site Admin 
   |  | 
 I miss the point.
 In the first post you stated that: 
 now you tell me this: 
 Neither of the problems have any relation to Php debugger. Please check with guys who are managing your server. | |||||||||||||||
| 
 | |||||||||||||||||
|  | 
|  | session side-effect and global variables |  | 
| 
 | ||
|  | 
|   | 
	Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by 
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
 


 RSS2 Feed
RSS2 Feed Posted: Fri Jul 28, 2006 1:36 am
 Posted: Fri Jul 28, 2006 1:36 am





