Re: String handling with special char?

From: Date: Tue, 30 Oct 2001 13:48:24 +0000
Subject: Re: String handling with special char?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-72870@lists.php.net to get a copy of this message
just use url_encode() to encode your parameters and then pass them It's just like richard basket problem a few emails behind $parameters = url_encode("error=25"); index.htm?$parameters Hope this helps ----- Original Message ----- From: "Andrew Cowles" <andy@cygnet.co.uk> To: <php-general@lists.php.net> Sent: Tuesday, October 30, 2001 8:40 AM Subject: [PHP] String handling with special char? > Hi Guys & Gals, > > Sorry to re-post this but I'm still stuck and have had no reply. > I receive via HTTP GET a string variable in encoded HEX format, for > example; > > script.php?text=%0A%01%00%B1%B2 > > My problem is that PHP sees the first occurance of %00 as a field > terminator and so anything after it is ignored. > > How can I access the full string? In C there is an alternative string > handling module which can be used (as C also uses it as a terminator). > How can I do this with PHP? > Please, please, please help if you can. > Best wishes, > > Andy > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#72870) next »