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: a href="index.php?entered=yes"/a Even if you never use

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

RE: [PHP] URL FROM IP

2001-04-09 Thread trogers
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 = getHostByAddr($REMOTE_ADDR); Tom At 10:17 AM 9/04/01 -0300, Renzi, Sebastian wrote: Having the ip i

Re: [PHP] ?xml version=1.0? PHP

2001-04-09 Thread trogers
Hi I do it this way: ? echo '?xml version="1.0"?' ; ? 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 ?xml version="1.0"? am I going to have to go back to a HTML 4.01 dtd or

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 is

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 new

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 + Jpeg

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 br"; endif; $Hash is registered in the session. Tom At 02:54 AM 31/03/01 +0100, David Hynes

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

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