[PHP-WIN] Re: php performance terrible outside firewall

2004-12-30 Thread Edward Tilley
Problem resolved. Turns out that my internal DNS server's configuration and a misinstalled/configured web-statistics counter were to blame. PHP runs great and a recent upgrade to mySQL added significant performance gains via query caching... "Edward Tilley" <[EMAIL PROTECTED]> wrote in message

[PHP-WIN] Re: a function question

2004-12-30 Thread Jason Barnett
Here is my code (which I can't get to work): /** Note that my code / comments are untested, but should be helpful. */ $mail = "[EMAIL PROTECTED]"; $user = "patrick"; function usermail( $user, $mail ) { /** We don't need global $user or $mail since these are passed into

Re: [PHP-WIN] a function question

2004-12-30 Thread graeme
The function strpos might be better, preg_match is a bit of overkill if (strpos($mail,'@') == false) // error message else // okay message graeme. Dean Hayes wrote: Try this i got this working without any problems prints everything out nice an neetly global $user; global $mail;