premade siggies ..
October 2nd, 2008block IP address
September 25th, 2008this 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 
techy border
September 25th, 2008Now I like to share the tutorial i have made, you can make a cool techy border .. check out the tut here
GIMP: An alternative for Photoshop
September 23rd, 2008GIMP 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!!
php date()
September 22nd, 2008The 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)
the format of the timestamp
date and time (as a 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.
PHP Date - Format the Date
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:
- d - The day of the month (01-31)
- m - The current month, as a number (01-12)
- Y - The current year in four digits
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
onerror
September 22nd, 2008Usually we are using this in our friendster profile for the linker, to make our layout codes work ..
Using the onerror event is the old standard solution to catch errors in a web page.
The onerror Event
We have just explained how to use the try…catch statement to catch errors in a web page. Now we are going to explain how to use the onerror event for the same purpose.
The onerror event is fired whenever there is a script error in the page.
To use the onerror event, you must create a function to handle the errors. Then you call the function with the onerror event handler. The event handler is called with three arguments: msg (error message), url (the url of the page that caused the error) and line (the line where the error occurred).
Syntax
onerror=handleErr
function handleErr(msg,url,l)
{
//Handle the error here
return true or false
}
in our linker where using this kind of code:
<img src=” ” onerror=”some javascript action here>
or
<input type=”image” src=” ” onerror=”some javascript action here“>
red = to make an error .. it’s just a simple code to work ..


(No Ratings Yet)







