Re: [PHP] php 5 and register_globals=off gives lotsa errors

2007-01-03 Thread Strong Cypher
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You said "if(action=="main")" So ... it's really that or you would said "if($action=="main")" ??? the $ is important so ... perhaps phpv4 ignore this kind of mistake and not php5 or perhaps "action" is when register global is on ... so if miss $ b

Re: [PHP] php 5 and register_globals=off gives lotsa errors

2007-01-02 Thread Richard Lynch
It's NOT register_globals being off. It's E_NOTICE being on. You could turn E_NOTICE off and *ignore* these errors -- They are still there, you are just ignoring them. Or you could fix the script: $action = isset($_GET['action']) ? $_GET['action'] : ''; would be the replacement line for your

Re: [PHP] php 5 and register_globals=off gives lotsa errors

2006-12-30 Thread Rasmus Lerdorf
You did more than just turn register_globals off. You also changed your error warning level. You have turned notices on. Set the same error warning level in your PHP 4 setup and you will see exactly the same messages. To be notice-free, your code should look like this: $action = isset($_GET['

[PHP] php 5 and register_globals=off gives lotsa errors

2006-12-30 Thread Wikus Moller
Hi to all. I am having huge problems running my script, which worked fine on a server with php 4 and register_globals turned on, on a server with php 5 and register_globals turned off. I get errors around the area in my script where I use $_GET (not the only error). For example the following cod