10-21-2009, 09:15 AM
I need help in this piece of code.
First of all,I prepare myself an index.php
Secondly,I prepared the ip.txt.I am running this script on Apache server running locally.Both of the IPs are pointing toward my machine.
Finally,I paste in this code bans.php,but I coundn't get this to work.
I still can access the site.
The message "Welcome people" still showing on my screen.
I am very new to PHP.
Anyone can guide me?
Thanks.
First of all,I prepare myself an index.php
Quote:<html>
<body>
<?php
include("bans.php");
?>
<p>
Welcome People !
</p>
</body>
</html>
Secondly,I prepared the ip.txt.I am running this script on Apache server running locally.Both of the IPs are pointing toward my machine.
Quote:127.0.0.1
192.168.1.5
Finally,I paste in this code bans.php,but I coundn't get this to work.
I still can access the site.
The message "Welcome people" still showing on my screen.
I am very new to PHP.
Anyone can guide me?
Thanks.