Re: PHP Corrupts URLs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Nathan,

Friday, June 8, 2007, 9:47:22 PM, you wrote:

> I have a php script that gets a url from a GET query parameter.  I have
> been running this script on PHP 5.2.2 on Ubuntu Linux, and everything 
> works as expected.  I have just installed PHP 5.2.3 on OS X via 
> MacPorts, and the same query parameter url has any single quote 
> characters escaped with a backslash when I retrieve it from $_REQUEST.

[snip]

> As you can see, in OS X the url acquires a the backslashes, which I 
> would like to avoid.

> I am not much of a PHP programmer at this point--it is a brand new 
> language for me, so I don't really now how to investigate this.  Is 
> there a PHP configuration option I can look at?

Sure.. look at the magic_quotes_gpc setting:

http://uk.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc

Cheers,

Rich
-- 
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux