php-windows Digest 20 Jan 2008 13:56:54 -0000 Issue 3406
Topics (messages 28744 through 28745):
Re: Warning: eregi() [function.eregi]: REG_ERANGE in ...
28744 by: Aaron Schiff
New website dedicated to debugging PHP.
28745 by: Keith Roberts
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
I think single quotes is right because you don't want PHP to escape
the characters...the escape is for regex, not PHP
On Jan 19, 2008 9:44 AM, Niel Archer <[EMAIL PROTECTED]> wrote:
> Hi
>
> > OK, I don't think I searched the web hard enough. I've not found a
> > definitive explanation, but I think the warning has something to do
> > with the dash symbols (\-) within the square brackets. Removing them -
> > changing them to the regular expression below - removes the warning
> >
> > '[EMAIL PROTECTED]'
>
> > Question is now, how am I supposed to match dash symbols?
>
> The problem is that you included the "\-" within SINGLE quotes. Escaping
> a character only works within double quotes. Go back to your original
> but substitute the ' for " around the expression. Like this:
>
> define("EMAIL_RE", "[EMAIL PROTECTED]");
>
> >
> > In one thread I read advised preg functions using the ereg functions.
> > I had ago with this, putting back in the dashes and changing the
> > regular expression to a perl RE:
> >
> > '/[EMAIL PROTECTED]/'
> >
> > No warnings this time and it appears to work. I still welcome any
> > feedback on ereg if anyone wants to give any.
>
> --
> Niel Archer
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
ts2do
--- End Message ---
--- Begin Message ---
Hi everyone. Please excuse me for cross posting to four
lists, but I'm aware that not everyone subscribes to all of
the lists, so I don't want anyone to miss this announcement.
I have written a new website that is dedicated to debugging
PHP applications.
From the about page:
http://www.php-debuggers.net/home/anyuser/about.php
About php-debuggers
A one-stop resource for Free Open Source PHP debuggers,
covering all operating systems. This site has been developed
in, and is maintained in, my spare time. I hope it helps you
with debugging your PHP applications.
Here at php-debuggers you can:
* Find details of Open Source PHP debuggers available for
your particular OS, including screenshots, and external
download links.
* Find download links and installation and configuration
instructions for PHP debugger modules, such as DBG and
Xdebug.
* Post forum help requests for problems you have
installing and configuring DBG or Xdebug PHP modules.
* Find installation and configuration instructions for
your OS's PHP debugger GUI programs.
* Post forum help requests for problems you have
installing and configuring the PHP debugger GUI programs
on your OS.
* Make forum requests for PHP debugger GUI programs to
be ported to your OS.
* Converse with other Open Source developers to discuss
porting a particular PHP GUI debugger from one OS to any
other.
* Add tutorials on the forum for how install and
configure a particular PHP debugger module, or debugger
GUI for your OS.
* Post details of Open Source PHP Debugger Projects that
need more help, or a new maintainer for the project.
To suggest other OS categories, more PHP debugger GUI's, or
improvements to the website, please see the contact page.
Kind Regards and Best Wishes,
Keith Roberts.
-----------------------------------------------------------------
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk
All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-----------------------------------------------------------------
--- End Message ---