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
- 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() {
$file_ip = file(log.txt);
foreach($file_ip
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 tried
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, visit:
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 posted :-p
oops,
-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 access is
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);
|
I run a website from New Zealand. The problem is when ?php echo date(F 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?
On 22-Jun-2003 Philip J. Newman wrote:
I run a website from New Zealand. The problem is when ?php echo date(F
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?
?php
echo
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
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 that
11 matches
Mail list logo