[PHP] Re: Email validation

2002-06-14 Thread Pedro Pontes
-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 [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, June 14, 2002

[PHP] Sudden timeouts

2002-06-12 Thread Pedro Pontes
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

[PHP] Re: Email validation

2002-06-12 Thread 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 a

[PHP] Re: Timing out session cookies

2002-05-07 Thread Pedro Pontes
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 on a

[PHP] Configuration problems

2002-05-07 Thread Pedro Pontes
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

Re: [PHP] Secure user authentication

2002-05-06 Thread Pedro Pontes
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... Pedro Pontes wrote: with

Re: [PHP] Defining PHP varibles from URL

2002-05-06 Thread Pedro Pontes
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

[PHP] Re: Call to a member function on a non-object...?

2002-05-03 Thread Pedro Pontes
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() {

[PHP] Secure user authentication

2002-05-03 Thread Pedro Pontes
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

Re: [PHP] New Session Variable unset doesn't work

2002-05-03 Thread Pedro Pontes
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

Re: [PHP] Secure user authentication

2002-05-03 Thread Pedro Pontes
at helps ::: : Julien Bonastre [The-Spectrum.org CEO] : A.K.A. The_RadiX : [EMAIL PROTECTED] : ABN: 64 235 749 494 : QUT Student :: 04475739 ::: - Original Message - From: Pedro Pontes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May

Re: [PHP] Secure user authentication

2002-05-03 Thread Pedro Pontes
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 unsuspectly