Re: [PHP] i get this for some reason
but i am not talking about running a server, i am just using php on server space that has php installed. what code would i incluse to get rid of this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] i get this for some reason
-Original Message- From: adam [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 24, 2001 1:43 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] i get this for some reason but i am not talking about running a server, i am just using php on server space that has php installed. what code would i incluse to get rid of this? RTM:http://www.php.net/manual/en/function.stripslashes.php Jason Lotito www.NewbieNetwork.net Where those who can, teach; and those who can, learn. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] i get this for some reason
$text=stripslashes($text); almir ""Jason Lotito"" [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... -Original Message- From: adam [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 24, 2001 1:43 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] i get this for some reason but i am not talking about running a server, i am just using php on server space that has php installed. what code would i incluse to get rid of this? RTM: http://www.php.net/manual/en/function.stripslashes.php Jason Lotito www.NewbieNetwork.net Where those who can, teach; and those who can, learn. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] i get this for some reason
thanks a bunch ^^ it works great -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] i get this for some reason
everytime i post text to this file, i get the characters " and ' turning up as \" and \' is there anything i can add that would keep them from outputting into this? here is the code i use: ? if ($message) { /* uncomment the next two lines to strip out html from input */ $name = strip_tags($name); /* $message = strip_tags($message); */ $message = ereg_replace("\r\n\r\n", "\nP", $message); $date = date("l, F j Y, h:i a"); if ($email == "") { $message = "hr noshade color=white size=1 width=100%\n table width=100% cellpadding=10trtd\n font size=2 face=verdanab$name /bfont size=1 -- $date/font\n blockquote\n $message\n /blockquote/font\n /td/tr/table\n\n"; } else { $message = "hr noshade color=white size=1 width=100%\n table width=100% cellpadding=10trtd\n font size=2 face=verdanaba href=mailto:$email$name/a /bfont size=1 -- $date/font\n blockquote\n $message\n /blockquote/font\n /td/tr/table\n\n"; } $fp = fopen ("comment.php.comment", "a"); fwrite ($fp, $message); fclose ($fp); } @readfile("comment.php.comment"); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] i get this for some reason
p.s. the submitted text $ message is what is returning the wierd quote marks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] i get this for some reason
Turn off magic_quotes_gpc in your php.ini file. -Rasmus On Fri, 23 Mar 2001, adam wrote: everytime i post text to this file, i get the characters " and ' turning up as \" and \' is there anything i can add that would keep them from outputting into this? here is the code i use: ? if ($message) { /* uncomment the next two lines to strip out html from input */ $name = strip_tags($name); /* $message = strip_tags($message); */ $message = ereg_replace("\r\n\r\n", "\nP", $message); $date = date("l, F j Y, h:i a"); if ($email == "") { $message = "hr noshade color=white size=1 width=100%\n table width=100% cellpadding=10trtd\n font size=2 face=verdanab$name /bfont size=1 -- $date/font\n blockquote\n $message\n /blockquote/font\n /td/tr/table\n\n"; } else { $message = "hr noshade color=white size=1 width=100%\n table width=100% cellpadding=10trtd\n font size=2 face=verdanaba href=mailto:$email$name/a /bfont size=1 -- $date/font\n blockquote\n $message\n /blockquote/font\n /td/tr/table\n\n"; } $fp = fopen ("comment.php.comment", "a"); fwrite ($fp, $message); fclose ($fp); } @readfile("comment.php.comment"); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]