Re: [PHP] Session not destroying properly

2001-03-05 Thread trogers
Hi You will need to kill the session data on the exit of your failed login not on entry to the login page as the data will already be overwritten by the previous session value. I use unset($name); unset($password); ... Tom At 04:24 PM 6/03/01 +0900, Yasuo Ohgaki wrote: >Do you use custom sess

Re: [PHP] sessions problem (and spec. Mozilla vs Opera)

2001-04-16 Thread trogers
HI Opers has a nasty caching behaviour which can cause problems with sessions and having different entry points on the same index page. To overcome some of the problems any hrefs that don't contain get variables should be set up as: Even if you never use the variable "entered" it will s

Re: [PHP] I need an expert to tell me what I am doing wrong

2001-03-25 Thread trogers
Hi what you need is: $sql = "INSERT INTO orders (product,name,email) :VALUES ('$product','$name','$email')"; You will also need to escape any single quotes in the variables Tom At 01:05 PM 24/03/01 +1200, YoBro wrote: >I have tried that, and I have been reading all sorts of info and been >cop

Re: [PHP] Strings in URL

2001-03-26 Thread trogers
the href should be print "http://www.contus.com/test_quote/quotepage.php3?site=$site&page=miniquote&; subject=$headline'\"> I think.. Tom At 09:41 PM 26/03/01 -0500, Claudia wrote: >I am attempting to pass a string value via a URL. I have tried using >urlencode and ereg_replace--with no luck. >

Re: [PHP] comparing dates works sometimes and fails another time!

2001-03-29 Thread trogers
You are doing a string compare not date, convert them to a unix time stamp and then compare $d1 = explode("-",$date1); $d2 = explode("-",$date2); $ts1 = mktime(0,0,0,$d1[1],$d1[2],$d1[0]); $ts2 = mktime(0,0,0,$d2[1],$d2[2],$d2[0]); if( $ts1 > $ts2 ): echo "Date 1 is greater than date2";

Re: [PHP] No-refresh

2001-04-01 Thread trogers
Hi I do it using sessions with: //Check for a reload $hash = mhash(MHASH_SHA1,serialize($HTTP_POST_VARS)); $hash = bin2hex($hash); if($hash == $Hash): $reload = "Yes"; echo "reload "; endif; $Hash is registered in the session. Tom At 02:54 AM 31/03/01 +0100, David Hynes wrote

Re: [PHP] PHPSESSID sticks to every link after upgrate of Apache/PHP

2001-04-08 Thread trogers
Hi You will probably need to make clean and rebuild php config and do a new make against the new version of apache. Just a guess Tom At 12:28 PM 5/04/01 +0900, Maxim Maletsky wrote: > >Hello, > >my co-worker has reinstalled Apache and PHP over the last night. > >The Apache was upgraded to the ne

Re: [PHP] Apache latest + PHP latest + GD latest + Freetype latest + Jpeg latest

2001-04-08 Thread trogers
Hi I don't think gd uses freetype by default .. seem to remember having to edit the makefile Tom At 12:12 PM 5/04/01 +0100, Alex Bloor wrote: >Hi, > >Firstly, thanks for reading this message. > >Has anyone managed to compile and use : > >Apache latest + PHP latest + GD latest + Freetype latest

Re: [PHP] URL FROM IP

2001-04-09 Thread trogers
Hi Try $url = getHostByAddr($REMOTE_ADDR); Tom At 10:17 AM 9/04/01 -0300, Renzi, Sebastian wrote: >Having the ip i want to obtain de URL (www.renzi.com.ar) > >Thank You very much ! > >Sebastián Renzi >Consultoría & Desarrollo de Sistemas. >CODES S.A > > >-- >PHP General Mailing List (http://ww

RE: [PHP] URL FROM IP

2001-04-09 Thread trogers
know why !! > > > -Mensaje original- > > De: trogers [SMTP:[EMAIL PROTECTED]] > > Enviado el: lunes 9 de abril de 2001 10:41 > > Para: [EMAIL PROTECTED] > > Asunto: Re: [PHP] URL FROM IP > > > > Hi > > > > Try > > > > $url = getH

Re: [PHP] & PHP

2001-04-09 Thread trogers
Hi I do it this way: ' ; ?> must use single quotes Tom At 04:38 PM 9/04/01 -0400, Gary wrote: >Hi All, > When using the dtd below on a page that has a form with php. I get a > parser error for am I going to have to go back to a > HTML 4.01 dtd or can I do something like escape the ? ? > >

Re: [PHP] what could cause the maximum execution time exceeded?

2001-04-09 Thread trogers
Hi possibly a loop running endlessly.. Tom At 11:02 AM 10/04/01 -0500, Jacky wrote: >Hi people >I ran a PHP page and there was an error said below: >Fatal error Maximum execution time of 30 seconds exceeded in >include/getRoomDesc.php4 >What could cause this?? >Jack >[EMAIL PROTECTED] >"There i

Re: [PHP] PHP and IE5.5 download problem

2001-04-11 Thread trogers
Hi For some reason this works for me, can even download .html files $headertxt = "Content-Disposition: attachment; filename=\"".$filename."\""; header("Content-Type: application/force-download");header($headertxt); Tom At 12:09 AM 12/04/01 +0500, Vikram Vaswani wrote: >Hi! > >I have a script wh

Re: [PHP] no reponse -- Need FTP help

2001-04-12 Thread trogers
Hi Probably the only way will be with a java applet to do the transfer directly to the other host. Not sure if applets can connect to a host that they did not originate from (not done much with java yet :) Tom At 11:09 PM 12/04/01 -0500, David Minor wrote: >hmm, good idea, but the only acce