RE: [PHP-GENERAL] PHP3 scripts on PHP4 engine has problems
| From: | Mark Roedel | Date: | Thu, 15 Jun 2000 13:20:29 +0000 |
| Subject: | RE: [PHP-GENERAL] PHP3 scripts on PHP4 engine has problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-1931@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Jeffrey Barendse [mailto:jeffrey@wireitup.nl]
> Sent: Thursday, June 15, 2000 7:46 AM
> To: php-general@lists.php.net
> Subject: [PHP-GENERAL] PHP3 scripts on PHP4 engine has problems
>
>
> I'm programming for a year now in PHP3. But I have a problem
> with the new PHP4 engine. When I send a Textbox trough a POST
> to a other HTML i show the text via the echo function. In PHP3
> this works fine. But in PHP4 I have problems. When I send a
> text with ' or " in it the result is /' or /". I do not know
> what the problem is. In PHP3 it works great!
>
> Help me, I'm desperate :-)
Have a look at the magic_quotes_gpc setting in your php.ini.
From the manual (http://www.php.net/manual/configuration.php):
magic_quotes_gpc boolean
Sets the magic_quotes state for GPC (Get/Post/Cookie)
operations. When magic_quotes are on, all ' (single-
quote), " (double quote), \ (backslash) and NUL's are
escaped with a backslash automatically.
---
Mark Roedel | "Blessed is he who has learned to laugh
Systems Programmer | at himself, for he shall never cease
LeTourneau University | to be entertained."
Longview, Texas, USA | -- John Powell