9+-]+(\.[_a-z0-9+-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$",
$strEMailAddress);
}
This should now accept your mail address.
Regards,
Pedro Alberto Pontes
- Original Message -
From: "Timothy J. Luoma" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: "Pedro Pontes"
function checkEmail($strEMailAddress)
{
return eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$",
$strEMailAddress);
}
You have it now :).
Regards,
Pedro Alberto Pontes
"Jeroen Timmers" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is there
Hello all,
I'm getting sudden timeouts in a site that makes use of sessions to keep
login information. In every page, a function is called that does:
session_set_cookie_params (1200);
session_start();
These timeouts don't seem to present any time or place pattern, they occur
randomly, before th
I have "/usr/local/lib/libgd.a",
but when I
"./configure --with-gd=/usr/local/lib --enable-gd-native-ttf --with-mysql --
with-apache=/usr/local/apache_1.3.24/ --enable-track-vars --with-oci8 --with
-zlib-dir=/usr/local/lib"
I get
"configure: error: Unable to find libgd.(a|so) anywhere under
/u
session_set_cookie_params ($expiration_time_in_seconds);
Regards,
--
Pedro Alberto Pontes
"Mick Sear" <[EMAIL PROTECTED]> wrote in message
06D1C9FA1087D4119FC900508B95056E011FECF2@eulexch1a">news:06D1C9FA1087D4119FC900508B95056E011FECF2@eulexch1a...
> Hi,
>
> How do I set an expiration time o
The way you're doing it now, you're first ERASING whatever value passed from
the URL, with
$file="";
and then trying to use it...
If this ' $file="" ' is some declaration attempt, just drop it, you don't
need to declare variables in PHP. Just check if $file has a value and then
use it.
For ex
I wasn't in fact aware of that domain test thingie. So my main worry is no
more.
Thank you guys.
--
Pedro Alberto Pontes
"The_radix" <[EMAIL PROTECTED]> wrote in message
004c01c1f348$2db81c40$3200a8c0@oracle">news:004c01c1f348$2db81c40$3200a8c0@oracle...
>
Hi Jon,
I am considering doing that because any user can create a simple PHP script
with his/her object with the authenticated flag set to "authorized",
register that object with the session and then link to any of my pages,
which if they don't make any kind of password test, they will unsuspectl
; Ok hope that helps
>
> :::
> : Julien Bonastre [The-Spectrum.org CEO]
> : A.K.A. The_RadiX
> : [EMAIL PROTECTED]
> : ABN: 64 235 749 494
> : QUT Student :: 04475739
> :::
> - Original
Yes, always remember that unset() deletes the REFERENCE to the variable, not
the variable itself, so in the next page, when you session_start() again,
the reference is recreated to the still existing value.
So, session_unregister is fundamental to unregister the reference from the
session.
To de
Hello,
I'm using the regular user authentication method, that is, check the
specified login/pass agains't the entries in the DB, if it is valid, create
the user object and register it with the section.
How can we prevent any user from creating a simple PHP page that creates a
simmilar user objec
You must have created that function inside some class definition. When you
do that, you must first instantiate that class to have access to its
functions (methods).
If you have:
class YourClass
{
function YourClass()
{
// constructor
}
function methodOne()
{
12 matches
Mail list logo