Hello,
Ernest E Vogelsinger [EMAIL PROTECTED] wrote:
At 23:53 14.11.2002, Lars Espelid said:
[snip]
Try to execute this code:
if (ereg[^0-9], $num))
print That's not a number!;
result: parsing error, expects ')' on the if-line.
You forgot an
Hello again...
Lars Espelid wrote:
Hello,
I'm running Apache 1.3.26, PHP 4.0.5 and WinXPpro.
My problem is as follows:
Try to execute this code:
if (ereg[^0-9], $num))
print That's not a number!;
result: parsing error, expects ')' on the if-line.
This one does have a parse error
At 23:53 14.11.2002, Lars Espelid said:
[snip]
Try to execute this code:
if (ereg[^0-9], $num))
print That's not a number!;
result: parsing error, expects ')' on the if-line.
You forgot an opening bracket, and need to quote the regex, like
if
""Wade"" [EMAIL PROTECTED] wrote in message
9c6dcb$h8e$[EMAIL PROTECTED]">news:9c6dcb$h8e$[EMAIL PROTECTED]...
Aside from " (quotes), which HTML characters should be preceded with a \
(backslash) to avoid parsing errors?
No.
I have the following, which I have in an .inc file outside my web
double quotes
' single quotes (yes, they are used quite often)
\ backslash (JavaScripts etc.)
there are your enemies, nothing else.
forget about + = $ ...
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
My previous post is a bit misleading.
""Wade"" [EMAIL PROTECTED] wrote in message
9c6dcb$h8e$[EMAIL PROTECTED]">news:9c6dcb$h8e$[EMAIL PROTECTED]...
Aside from " (quotes), which HTML characters should be preceded with a \
(backslash) to avoid parsing errors?
No and Yes.
NO: You don't have to
Sterling wrote:
$topic = Aerospace Commercial Space;
$link_value = str_replace(, '%26', $topic);
$link_value = str_replace(' ', '%20', $topic);
This should be
$link_value = str_replace(, '%26', $topic);
$link_value = str_replace(' ', '%20', $link_value);
Anyway, this is this wrong way to
I've been able to escape the 'space' character in a variable so it can
be safely passed through a URL but I'm having trouble finding anything
that works for escaping the '' ampsand.
php.net/urlencode
as for your code:
$topic = Aerospace Commercial Space;
$link_value = str_replace(,
8 matches
Mail list logo