On Thu, July 12, 2007 7:02 am, Sancar Saran wrote:
> I cannot do any operation wiht single quote like
>
> explode("'",$strContent);
>
> Did I miss someting ?
Works for me, so you've definitely missed something somewhere.
Like telling us what's in $strContent and whatever else is before the
code
On Thu, 2007-07-12 at 15:47 +0300, Sancar Saran wrote:
> On Thursday 12 July 2007 15:11:28 Stut wrote:
> > Sancar Saran wrote:
> > > I cannot do any operation wiht single quote like
> > >
> > > explode("'",$strContent);
> > >
> > > Did I miss someting ?
> >
> > In what way "can't"? What happens / d
On Thursday 12 July 2007 15:11:28 Stut wrote:
> Sancar Saran wrote:
> > I cannot do any operation wiht single quote like
> >
> > explode("'",$strContent);
> >
> > Did I miss someting ?
>
Omg, It's my bad, sorry for lameness.
Before the exploding text I do some encoding decodings.
So? I do mis s
On Thursday 12 July 2007 15:11:28 Stut wrote:
> Sancar Saran wrote:
> > I cannot do any operation wiht single quote like
> >
> > explode("'",$strContent);
> >
> > Did I miss someting ?
>
> In what way "can't"? What happens / doesn't happen?
>
> -Stut
>
> --
> http://stut.net/
Hi,
Problem was
$st
Sancar Saran wrote:
I cannot do any operation wiht single quote like
explode("'",$strContent);
Did I miss someting ?
In what way "can't"? What happens / doesn't happen?
-Stut
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/uns
Hi,
I cannot do any operation wiht single quote like
explode("'",$strContent);
Did I miss someting ?
Regards
Sancar
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Secondly, what is best/favorite way to escape chars
> for mysql? I know that mysql_real_escape_string()
> has been recommended recently. But that brings up
> the
> issue of magic quotes. Would
> set_magic_quotes_runtime(0) be a reliable way of
> making sure my code runs with magic quotes off
I would like some advice on special/reserved chars in
strings, especially single quotes.
I am developing an application that requires using a
Name field in the url for navigation. I have a case
where "Toni's" in the url is returned in
$_SERVER['PATH_INFO'] as "Toni\'s" eventhough the
address bar
php does;-)
$text = str_replace("'","replace_text",$text);
-Original Message-
From: Clint Tredway [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 11, 2001 1:33 PM
To: [EMAIL PROTECTED]
Subject: [PHP] single quote replace
Does anyone have a function that w
Does anyone have a function that will replace single quotes inside a string?
Thanks!
--
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]
On Fri, Jul 06, 2001 at 11:28:38AM +0200, Andy wrote:
> I got a data file containing this line:
> $ 1'000'000.-
>
> Then I read and echo this line
> $fp = fopen ( $sFilename,"r");
> $sData = fgets ( $fp, 1000 ) )
>
> echo $sData
>
> Now what came out is
> $ 1\'000\'000.-
>
; To: [EMAIL PROTECTED]
> Subject: [PHP] Single quote
>
>
> I got a data file containing this line:
> $ 1'000'000.-
>
> Then I read and echo this line
> $fp = fopen ( $sFilename,"r");
> $sData = fgets ( $fp, 1000 ) )
>
> echo $sData
I got a data file containing this line:
$ 1'000'000.-
Then I read and echo this line
$fp = fopen ( $sFilename,"r");
$sData = fgets ( $fp, 1000 ) )
echo $sData
Now what came out is
$ 1\'000\'000.-
I tried to get rid of these slashes with
ereg_replace( "\\'", "'", $sData
13 matches
Mail list logo