[PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Michael Jurgens
Hi, Now that register_globals is (or will be) OFF by default (just like error_reporting) I'm facing a huge rewrite of existing code if my hosting provider decides that he wants to upgrade his php (and believe me, he will use default settings) Is there any way to override register_globals and

Re: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Michael Jurgens
Thank you for your answers. The hack seems the way to go, but I haven't found anything like this on the net. Presumably because the 'problem' is so new... I have absolutely no control over my hosting providers settings, and I wish PHP 4.10 would just understand something like

Re: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Michael Jurgens
Hey Guys, Thanks a lot, I allways use some config files that I include in every page, and with extract ($_REQUEST); added to one of those files, almost all of my problems are history. I'm now working on getting $PHP_SELF etc back working, but that should work out. Amazing this newsgroup, thank

[PHP] Function definition: how to make default argument an empty array?

2001-12-22 Thread Michael Jurgens
Hi, As you all may know, this is how you set an optional second argument, that defaults to acidophilus function makeyogurt ($flavour, $type = acidophilus) { } I'm now looking for a way to have the second (optional) argument be an array of strings. I can't get it to work though... In

Re: [PHP] php pop3 checker

2001-12-22 Thread Michael Jurgens
Or try Popper, a nice standard webmail solution written in PHP. It must be on freshmeat.net Michael Bogdan Stancescu [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Check these out: http://www.horde.org/imp/ http://twig.screwdriver.net/ Also, make sure you

[PHP] Stopping $_REQUEST array to give warnings

2001-12-24 Thread Michael Jurgens
Hello, I'm currently trying to code the new PHP way, so register_globals=OFF, but if I try to do things like $test = $_REQUEST[test]; and the variable test is unknown you receive a warning Warning: Undefined index: test in c:\webserver\test.php What is the new 'proper' way to import a