[PHP] date() is hours behind

2003-09-29 Thread PHP Webmaster
Hi all, I currently use: date("l jS F Y, g:i A"); To format the current date/time to my personal preference. However, at 12:19 AM on my machine, date("l jS F Y, g:i A"); shows 4:19PM... 8 hours slow :( Any ideas on how to correct this? Am I right in saying that there is a timezone problem? An

Re: [PHP] date() is hours behind

2003-09-30 Thread PHP Webmaster
gt; wrote in message > news:[EMAIL PROTECTED] > > See the putenv() function. For example to get the correct Eastern Standard > > Time > > > > http://www.php.net/putenv > > > > > putenv('TZ=US/Eastern'); > > echo 'Last modifie

Re: [PHP] date() is hours behind

2003-09-30 Thread PHP Webmaster
"Jon Kriek" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > putenv('TZ=Europe/London'); > > OR > > putenv('TZ=GMT'); > > -- > Jon Kriek > http://phpfreaks.com > > "Php Webmaster" <[EMAIL PROTECTED]&g

[PHP] Re: method to prevent multiple logons of same account

2003-10-06 Thread PHP Webmaster
"Chris W. Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi. Ok I've got the logging in of customer accounts settled but what I need to work into the system is that of preventing more than one instance of the same account. If I logon right now as testuser1 on ComputerA and t

Re: [PHP] method to prevent multiple logons of same account

2003-10-06 Thread PHP Webmaster
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This has been discused several times befor and the conclusion is that > these obstructions are wrong. What if the user loses its credentials and > he is still considered loged in. He cannot log in again. If you bind th

[PHP] Wrapping code inside [code]xxx[/code] tags.

2003-10-06 Thread PHP Webmaster
Hi all, I have on my site a part where users' can submit articles and no doubt their articles will contain code. Code is wrapped inside of [code] tags, i.e. [code][/code] However, there is other text in the same article, so I need to format the code inside of the [code] and [/code] tags using htm

[PHP] .htaccess - Still asking for login information although already sent through address bar

2003-10-06 Thread PHP Webmaster
Hi all, Iv'e got a .htaccess file protecting a site using HTTPS. I have tried using a form to send the login details to the site through the address bar (http://user:[EMAIL PROTECTED]) but the .htaccess password protection box still appears asking for the username and password! The only thing I c

[PHP] Re: .htaccess - Still asking for login information although already sent through address bar

2003-10-06 Thread PHP Webmaster
"Php Webmaster" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > Iv'e got a .htaccess file protecting a site using HTTPS. I have tried using > a form to send the login details to the site through the address bar > (http://user:[EMAIL PR

Re: [PHP] .htaccess - Still asking for login information although already sent through address bar

2003-10-06 Thread PHP Webmaster
"Mika Tuupola" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mon, 6 Oct 2003, PHP Webmaster wrote: > > > Iv'e got a .htaccess file protecting a site using HTTPS. I have tried using > > a form to send the login details to the site through

Re: [PHP] .htaccess - Still asking for login information although already sent through address bar

2003-10-06 Thread PHP Webmaster
ll prompt you for the password, redirect you to the subdomain and then prompt you again. Nathan - Original Message - From: Mika Tuupola To: PHP Webmaster Cc: [EMAIL PROTECTED] Sent: Monday, October 06, 2003 7:12 AM Subject: Re: [PHP] .htaccess - Still asking for login information

Re: [PHP] .htaccess - Still asking for login information although already sent through address bar

2003-10-06 Thread PHP Webmaster
"Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tuesday 07 October 2003 00:32, PHP Webmaster wrote: > > > If I use my login form, the login box pops up only once. If I copy the text > > from the address bar (generated by the f

[PHP] Re: Detecting devices i.e. PDA, Mobile

2003-10-11 Thread PHP Webmaster
"Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I have created an online system, and have created a WAP version, and am > currently crreating a PDA version. What I wuold like to to do is give out > the same URL instead of domain.com for normal use, domain.com/wap/ or

[PHP] Search for an exact string inside of another string

2003-10-11 Thread PHP Webmaster
Hi all, I have a little problem that I hope you can help me with. I have the following strings: $str1 = "Bob"; $str2 = "My Name Is Bob"; How can I get PHP to look for $str1 inside of $str2? Also, what about if "Bob" inside of $str2 is in different places? I would like something like: if ($st

[PHP] Re: Search for an exact string inside of another string

2003-10-11 Thread PHP Webmaster
"Manuel VáZquez Acosta" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Try: > > if (strpos($str2, $str1) !== false) > echo "$str1 is inside $str2"; > else > echo "could not find $str1 inside $str2"; > > "

Re: [PHP] Session not getting destroyed !

2003-10-17 Thread PHP Webmaster
"Binay" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Yes its showing 0 only.. > > Its a weird kind of problem for me .. > > - Original Message - > From: "David Otton" <[EMAIL PROTECTED]> > To: "Binay" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Friday, October 17

Re: [PHP] using ImageGIF

2003-10-17 Thread PHP Webmaster
"Louie Miranda" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > And here's the error > > > [Fri Oct 17 10:52:20 2003] [error] PHP Fatal error: Call to undefined > function: imagegif() in /Volumes/WWW_Root/louie/test.php on line 6 > > > > -- - > Louie Miranda > http://www.axishift.c

[PHP] Read a file, extract and echo some information

2003-10-20 Thread PHP Webmaster
Hi all, I have a little dilemma on my hands that I can't seem to solve. Iv'e looked through the PHP Manual at the fread(), fgets(), fopen(), file() etc functions which I beleive are capabile of what I want to do, but I just can't seem to peice it all together. Anyway, the following code is inside

Re: [PHP] Read a file, extract and echo some information

2003-10-21 Thread PHP Webmaster
"Chris W. Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] PHP Webmaster <mailto:[EMAIL PROTECTED]> on Monday, October 20, 2003 4:36 PM said: > As you can see, the above code will not work as the $title variable > has not been set yet. So, I

[PHP] Re: the function of the "@" symbol?

2003-11-04 Thread PHP Webmaster
"Joffrey L Leevy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all: > > I have been searching through several books to find out what the "@" > character represents. > > An example used in code: > > if (@$first == "no"). > > Could anyone please explain the function of "@

Re: [PHP] verify my ISP

2003-11-04 Thread PHP Webmaster
"John Taylor-Johnston" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How can I verify if my ISP really does have PHP on a server I am using. They say if I want PHP, I must pay an extra $15 per month. Is there somehting I can put in my .htaccess to verify and maybe do this? > >