Re: Problem with the double quotes

From: Date: Tue, 14 May 2002 02:07:17 +0000
Subject: Re: Problem with the double quotes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-97459@lists.php.net to get a copy of this message
Please read the following: Using Strings in PHP http://www.zend.com/zend/tut/using-strings.php Strings http://www.php.net/manual/en/language.types.string.php Notice stripslashes(), addslashes(), the PHP directive magic_quotes_gpc and the use of ' vs ". Regards, Philip Olson On Tue, 14 May 2002, Manisha wrote: > I want to display the content of a file containing double quotes. > > It is giving me error. I experimented with one small string variable. If I > add 'Slash' manually, then it is ok. But addslashes function is not working > > > $str1 = addslashes("this is the " " msg "); > > This gives me error. But > > $str1 = addslashes("this is the \" \" msg "); This is ok. > > Manually adding slah to big file quiet impossible. Is there any good > solution for this ? How to convert double quotes of file into \" ? > > Thanks in advance > > Manisha > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#97459) next »