gt; tried &rsquo &rdquo and all.
> Thanks in advance
> --
> View this message in context:
> http://www.nabble.com/Pop-up-window-in-PHP-code-tf3167481.html#a8786668
> Sent from the PHP - General mailing list archive at Nabble.com.
--
Best regards,
mailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ewwindow.focus()}
> }
>
> The javascript code works perfect with other pages and within HTML, its just
> that the PHP is not supporting the quotes and double quotes. I have even
> tried &rsquo &rdquo and all.
> Thanks in advance
> --
> View this message in con
Try this one:
$old_string="lazy \"some chars|some chars\" dog";
$new_string=str_replace('|', '_', $old_string);
print $new_string;
Ed
Friday, February 2, 2007, 10:39:59 PM, you wrote:
> ok, but :
> $old_string="lazy \"some chars|some chars\" dog";
> $new_string=str_replace('"|"', '_', $old_str
I have tasted the code and it worked fine (if I got you right):
$old_string="lazy \"|\" dog";
$new_string=str_replace('"|"', '_', $old_string);
print $new_string;
I got "lazy_dog"
Ed
Friday, February 2, 2007, 10:01:14 PM, you wrote:
> Thanks,
> but I think that I must use preg_replace because
want replace the "|" (pipe) and the " " (space) chars where are
> between " (double-quotes) by an underscore "_" with the
> preg_replace(); funtction.
> Can someone help me to find the correct regex.
> Thanks in advance
> Seb
--
Best regards,
Thank you Roman and Jochem,
I'll try both.
Best regards,
Ed
Sunday, January 21, 2007, 6:27:44 PM, you wrote:
> # [EMAIL PROTECTED] / 2007-01-21 17:29:56 +0300:
>> I am trying to create a link checker that would look for broken URLs
>> with help of the following code"
>>
>> $handle = @fopen("ht
Hi list,
I am trying to create a link checker that would look for broken URLs
with help of the following code"
$handle = @fopen("http://www.circle.am";, "r");
if ($handle):
print "OK";
else:
print "Error";
endif;
The problem is that I want to check if the links are accessible under
certain proxy
7 matches
Mail list logo