Re: parameters in php4

From: Date: Fri, 13 Dec 2002 16:34:24 +0000
Subject: Re: parameters in php4
Groups: php.install 
Request: Send a blank email to php-install+get-9384@lists.php.net to get a copy of this message
ini_set("register_globals", 1); >>> "Sjef Janssen" <manuals-scripts@planet.nl> 12/13/02 09:39AM >>> >>> Hallo, I used to have php3 installed on my machine. Now I installed php4 (4.2.3) and it seems parameters are handled differently. In a function I have a parameter set to a default value, as: function blabla($p1=0,$p2=0) { } I get an error when calling the function saying that the parameters are empty! Secondly I use $PHP_SELF to set the action in a form. The error says $PHP_SELF is also empty. Apparently this changed since 4.1.0. Is there a way to make this work instaed of rewriting all my scripts containing forms? Thanks, Sjef -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.install (#9384) next »