yes at last!

12345 (No Ratings Yet)
Loading ... Loading ...
November 4th, 2008

grrr!! after a long long time .. now i have internet connection again .. and I’m very happy about that :) .. Now I can post and update here .. yeay!!! because staying at home without internet connection is so so much boring … sorry guys for that, and also my affiliates ..


View this Post in: English Chinese(T) German Japanese Korean Spanish

premade siggies ..

12345 (3 votes, average: 4.33 out of 5)
Loading ... Loading ...
October 2nd, 2008

hello just wanns share my premade sigs .. check them out here


View this Post in: English Chinese(T) German Japanese Korean Spanish

block IP address

12345 (2 votes, average: 5 out of 5)
Loading ... Loading ...
September 25th, 2008

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 :14:


View this Post in: English Chinese(T) German Japanese Korean Spanish

techy border

12345 (1 votes, average: 5 out of 5)
Loading ... Loading ...
September 25th, 2008

Now I like to share the tutorial i have made, you can make a cool techy border .. check out the tut here


View this Post in: English Chinese(T) German Japanese Korean Spanish

GIMP: An alternative for Photoshop

12345 (1 votes, average: 5 out of 5)
Loading ... Loading ...
September 23rd, 2008

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!!


View this Post in: English Chinese(T) German Japanese Korean Spanish

php date()

12345 (1 votes, average: 5 out of 5)
Loading ... Loading ...
September 22nd, 2008

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)

Parameter Description format Required. Specifies
the format of the timestamp timestamp Optional. Specifies a timestamp. Default is the current
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

View this Post in: English Chinese(T) German Japanese Korean Spanish

onerror

12345 (No Ratings Yet)
Loading ... Loading ...
September 22nd, 2008

Usually 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=”&nbsp” onerror=”some javascript action here>
or
<input type=”image” src=”&nbsp” onerror=”some javascript action here“>

red = to make an error .. it’s just a simple code to work ..


View this Post in: English Chinese(T) German Japanese Korean Spanish