[PHP] Changing the Time Zone in php.ini

2004-01-08 Thread Andy Higgins
Hello, I have a requirement to run two different sites that are in different time zones on the same machine. Does anyone know if this is possible to do by running two instances of php and making a change in the php.ini? Or do you have any other suggestions on how this can be done? Thank you.

[PHP] Problem with fmod() function

2003-12-30 Thread Andy Higgins
Hello, My understanding from the documentation is that the fmod() function should work with floating point numbers however the following snippet of code: ?php //php 4.3 on Linux $x = 1.05; $y = 0.05; echo x: $x br; echo y: $y br; echo fmod: . fmod($x, $y) . br; ? outputs the following: x:

[PHP] Re: Simple question

2003-12-28 Thread Andy Higgins
Hi Lab, I normally use code of the following format, which I think is quite neat: //Note that you do not need curely brackets in an if statement is there is only one line if ($_SERVER['REQUEST_METHOD'] == 'POST') $add = $HTTP_POST_VARS['textbox']; if ($add == 'Hello') do something

[PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Andy Higgins
Hello All, I have been racking my head over a problem where a large percentage of users are unable to log into my php site due to what seems to be a problem with setting php session variables on certain end user browsers (certain versions of AOL seem to be particularly problematic). Below are

Re: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Andy Higgins
i.e. will it be possible for some one to hijack the login if this check is not there? Or does anyone have any other suggesstions for doing authentication? Thank you. Regards, Andy Andras Kende [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -Original Message- From: Andy Higgins

[PHP] Re: SESSION Query

2003-12-27 Thread Andy Higgins
Hi Aniruddha, Try using session_start(); $HTTP_SESSION_VARS['session_referer'] = abc.com; and if (session_is_registered('session_referer')) go to abc.com; Regards, Andy Aniruddha [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi PhpTeam, Iam runing PHP 4.3.0 on Apache server.

Re: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Andy Higgins
PROTECTED] On Saturday 27 December 2003 07:03 am, Andy Higgins wrote: Hello All, I have been racking my head over a problem where a large percentage of users are unable to log into my php site due to what seems to be a problem with setting php session variables on certain end user browsers

Re: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Andy Higgins
Message- From: Andy Higgins [mailto:[EMAIL PROTECTED] Can anyone confirm whether AOL (or any other ISPs for that matter) change a user's IP address as seen by the web server (for eample through a proxy) within the same session? It's been pointed out and confirmed many, many times

Re: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Andy Higgins
Hi Gerard, Thank you for your assistance you have been of enormous help. Regards, Andy Gerard Samuel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Saturday 27 December 2003 10:54 am, Andy Higgins wrote: 1. At the time of login will the login code need to check if the clients