[PHP] Can I use a function within an ereg_replace?

2001-04-03 Thread Dan Wilson

Hey all,

I'm trying to mangle email addresses to pass to an email sending form and
want to use a custom hashing function within an eregi_replace.

Example:

$text = eregi_replace("[my big email regex]", "send.php?addr=" .
hash_func("\\1@\\2.\\3"), $text);

I can't seem to get this to work... it is just hashing the static text
within the function, not the replaced values.

Can this just not be done?

-Dan


-- 
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]




[PHP] phpPgAdmin 2.4 Release -- Enhances Security

2002-01-19 Thread Dan Wilson

phpPgAdmin 2.4 Release Enhances Security

The phpPgAdmin Development team is pleased to announce the release of
version 2.4. A major security issue was resolved with the implementation of
a new authorization scheme that places all security in the hands of
PostgreSQL itself.

In addition to security updates, the new version contains various bug fixes
and a few new minor features.

Download version 2.4 at http://sourceforge.net/projects/phppgadmin

About phpPgAdmin:
phpPgAdmin was originally a port from phpMyAdmin. The PostgreSQL feature set
pushed the development of phpPgAdmin into different areas of administration
of the DBMS. phpPgAdmin now includes the ability to administer not only
tables, but triggers, functions (stored procedures), views, operators,
indices, and sequences.

Additional features provide user and group administration, multiple servers
support as well as other critical features such as browsing table data,
editing and deleting rows, primary and unique key administration and a
reports utility to keep your most commonly used queries handy.

-Dan Wilson
and the phpPgAdmin Development Team


-- 
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]




[PHP] phpPgAdmin joins SourecForge

2001-10-19 Thread Dan Wilson

For full story, please visit
http://sourceforge.net/forum/forum.php?forum_id=117841

It looks like a previous post didn't go through, so if this is a duplicate,
please forgive me.

-Dan
[EMAIL PROTECTED]
http://sourceforge.net/projects/phppgadmin



-- 
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]




[PHP] More Email ereg Validation

2001-04-04 Thread Dan Wilson

I'm trying to parse the different "parts" of an email address both for
validation and munging.

I have the following regex:
([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{3})

This works great, except it doesn't accept the country code domains (.au,
etc).  So I changed the number of characters to {2,3} at the end of the
regex:
([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{2,3})

But then this works for the country code domains, but cuts off a character
of the 3 char domains because it matches the 2 characters as well. So if I'm
using the [EMAIL PROTECTED] email address I end up with $1 = "my", $2 = "domain"
and $3 = "om"

What do I do to catch both cases correctly?

Thanks in advance!
-Dan



-- 
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]




Re: [PHP] More Email ereg Validation

2001-04-05 Thread Dan Wilson

: [EMAIL PROTECTED] says...
: }I'm trying to parse the different "parts" of an email address both for
: }validation and munging.
: }
: }I have the following regex:
: }([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{3})
: }
: }This works great, except it doesn't accept the country code domains (.au,
: }etc).  So I changed the number of characters to {2,3} at the end of the
: }regex:
: }([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{2,3})
: }

: Here's a quick patch.. =)

: ([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{2}[a-z]?)

Sorry, but that doesn't work.  I thought it would, but it only does two
characters on the top level domain again. Tested at
http://www.php.comzept.de/rexpr (thanks Jrg!)

Does anyone else (a regex guru) have any other suggestions?

Thanks,
-Dan


-- 
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]




Re: [PHP] More Email ereg Validation

2001-04-05 Thread Dan Wilson

:  : Here's a quick patch.. =3D)
:  : ([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{2}[a-z]?)
:  Does anyone else (a regex guru) have any other suggestions?

: I'm by no means an reg-exp-expert (hate these things)

: /[a-z0-9_.-]+@+[a-z0-9._-]+\.[a-z]{2,4}/i

: should do.
: -fkr

And the winner is.

([a-z0-9_.-]+)@([a-z0-9._-]+)\.([a-z]{2,4})

Thanks Felix!  It was all in the escaping of the dot that is outside of the
parens!

-Dan


-- 
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]