Re: [PHP] Small Problem - could you help me, please?

2004-03-17 Thread Labunski
Thank you very much, it's working fine. Lab. "Jason Giangrande" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Labunski wrote: > | $ip = getenv ("REMOTE_ADDR"); > | > | function kick() { > | $file_ip = file("log.txt"); > |

Re: [PHP] Small Problem - could you help me, please?

2004-03-17 Thread Jason Giangrande
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Labunski wrote: | $ip = getenv ("REMOTE_ADDR"); | | function kick() { | $file_ip = file("log.txt"); | foreach($file_ip as $value_ip ) { | $kick .= "$value_ip"; | } | return $kick; | } | if ($ip == kick()){ | echo "Sorry, the acce

Re: [PHP] Small Problem - could you help me, please?

2004-03-17 Thread Rob Ellis
On Wed, Mar 17, 2004 at 06:11:31PM -0500, Jake McHenry wrote: > > I think you want something like: > > > >if (in_array($_SERVER['REMOTE_ADDRESS'], file('log.txt'))) > >die("Sorry, the access is denied."); > > > > - Rob > > > yes, that'll work too.. just more compact than what I post

Re: [PHP] Small Problem - could you help me, please?

2004-03-17 Thread Jake McHenry
> I think you want something like: > >if (in_array($_SERVER['REMOTE_ADDRESS'], file('log.txt'))) >die("Sorry, the access is denied."); > > - Rob yes, that'll work too.. just more compact than what I posted :-p Jake -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Small Problem - could you help me, please?

2004-03-17 Thread Rob Ellis
On Thu, Mar 18, 2004 at 12:46:52AM +0200, Labunski wrote: > I have a small problem with the script - could you hepl me, please? > > I made small "kicking system" for those who tried to guess the Login > information. > The script below is just a part of the code, but it's not working properly. > I

Re: [PHP] Small Problem - could you help me, please?

2004-03-17 Thread Jake McHenry
- Original Message - From: "Labunski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 17, 2004 5:46 PM Subject: [PHP] Small Problem - could you help me, please? > $ip = getenv ("REMOTE_ADDR"); > > function kick() { >

[PHP] Small Problem - could you help me, please?

2004-03-17 Thread Labunski
I have a small problem with the script - could you hepl me, please? I made small "kicking system" for those who tried to guess the Login information. The script below is just a part of the code, but it's not working properly. I tried to solve this problem in many ways, but I couldn't. This script

Re: [PHP] Small problem with date and location information?

2003-06-21 Thread Don Read
On 22-Jun-2003 Philip J. Newman wrote: > I run a website from New Zealand. The problem is when j, Y, g:i a"); ?> it shows the time of the server, that just happens to > be located in Dallas USA. Is there a way that I can change the time so it > matchs New Zealand Time? '; putenv('TZ=PST8PDT'); e

[PHP] Small problem with date and location information?

2003-06-21 Thread Philip J. Newman
I run a website from New Zealand. The problem is when it shows the time of the server, that just happens to be located in Dallas USA. Is there a way that I can change the time so it matchs New Zealand Time?

Re: [PHP] small problem

2002-06-12 Thread Analysis & Solutions
On Wed, Jun 12, 2002 at 12:49:36PM +0300, savaidis wrote: > > Where in config have I to change "something" to make Apache understand > /root/index.php as /root/ ? To make the directive specific to that directory and all directories under it: In /root make a file called .htaccess In tha

[PHP] small problem

2002-06-12 Thread savaidis
Where in config have I to change "something" to make Apache understand /root/index.php as /root/ ? Thanks Makis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php