and again. I’m back in blogging but not that active.. because I’m only using my phone.. hehe..
sorry for my affies.
this is just a simple php code to block an IP[Internet Protocol] address ..
just study the code to add more
<?php
$deny = array(”111.111.111“, “222.222.222“, “333.333.333“);
if (in_array ($_SERVER[’REMOTE_ADDR’], $deny)) {
//redirect thee blocked viewer to ..
header(”location: http://www.google.com/“);
exit();
} ?>
enjoy the code 
Now I like to share the tutorial i have made, you can make a cool techy border .. check out the tut here
GIMP stands for GNU Image Manipulation Program, an alternative to Photoshop when editing images. This is a very good software for open-source software lovers like me. GIMP is intended for UNIX platforms but there are versions of GIMP for Windows and Mac OS.
GIMP is expandable and extensible. You can augment plug-ins and extensions to perform simple task to complex image manipulations.
To know more about GIMP, check this out for Introduction to GIMP.
Itching to try it out? Download your copy of GIMP, install it and let’s start gimping!!
The PHP date() function is used to format a time or a date.
The PHP date() function formats a timestamp to a more readable date and time.
Syntax:
date(format,timestamp)
PHP Date - What is a Timestamp?
A timestamp is the number of seconds since January 1, 1970 at 00:00:00 GMT. This is also known as the Unix Timestamp.
A timestamp is the number of seconds since January 1, 1970 at 00:00:00 GMT.
This is also known as the Unix Timestamp.
The first parameter in the date() function specifies how to format the
date/time. It uses letters to represent date and time formats. Here are some of
the letters that can be used:
An overview of all the letters that can be used in the format parameter, can
be found in our PHP Date reference.
Other characters, like”/”, “.”, or “-” can also be inserted between the
letters to add additional formatting:
<?php
echo date("Y/m/d");
echo "<br />";
echo date("Y.m.d");
echo "<br />";
echo date("Y-m-d");
?>
|
The output of the code above could be something like this:
2006/07/11 2006.07.11 2006-07-11