PHP Javascript HTML DateTime today email validation Random PHP Time Calculation Random Number file_exists cookieEnabled array Referrer getenv if get current file User IP newCheck mail Knuth javascript calendar array_count_values _POST HTTP_REFERER include Alarm Clock Javascript Alarm Clock Javascript DateTime max_execution_time Number Format password Alarm PHP array _SERVER PHP_SELF preg_regreplace printf Cardinal Endings encryption chunk_split click Content-Type Calculator count Block IP address DateTime Format Delphi Internet 암호화 else bcsub gmdate bcadd for loop form form handling Formatted date string formatted date time Formatted time string getDate getDay

DELPHI INTERNET.ZIP

Adding and Subtracting Time   (created at Sep 13, 2007)   43  

The time () function generates a long string of numbers representing how many seconds have passed since January 1, 1970. It is possible to add and subtract time by adding and subtracting seconds.

PHP date and time formatting   (created at Oct 16, 2007)   44  

The Smarty date_format function returns a formatted string showing date, time and/or seconds.index.php:assign('yesterday', strtotime('-1 day'));$smarty->display('index.tpl');?>index.tpl:{$smarty.now|date_format}{$smarty.n...

How to redirect browser in PHP ?   (created at Oct 16, 2007)   38  

Using the php header function, a browser can be redirected to another page. 

How to get current filename as variable ?   (created at Oct 15, 2007)   53  

Sometimes you need just the filename of the current script, without the path. This snippet does just that using the SCRIPT_NAME and explode function.

email validation, simple   (created at Oct 15, 2007)   42  

Validate an email address - returns TRUE or FALSE. Checks format only, does not use any networking functions to verify the account actually exists.

How to ban / block IP addresses   (created at Oct 15, 2007)   58  

This example gets the users IP address and exits the page if it matches a banned number.

for loop - simple   (created at Oct 15, 2007)   63  

for loop - basic control structure. This example loops until the variable hits 10 and then breaks out. 10) {       break;   }   echo $i;}?>sample output :12345678910

form action - detect form post   (created at Oct 15, 2007)   41  

There are several ways to process a php form. This example looks for the existance (regardless of value) of the Submit _POST variable.got submission
";   

How to make random number ?   (created at Oct 15, 2007)   29  

Generate a random number using mt_rand. From the php documentation- "If called without the optional min, max arguments mt_rand() returns a pseudo-random value between 0 and RAND_MAX. If you want a random number between 5 and 15 (inclusive), for example, us...

How to check if a file exists ?   (created at Oct 15, 2007)   40  

To determine whether a file exists on the server, PHP has a simple function: file_exists.

How to include a file with error reporting ?   (created at Oct 15, 2007)   35  

Sometimes you want to be able to give some feedback if a PHP include has failed. Here is a version using the fopen command, which can search the include path.

PHP if...else... example   (created at Oct 15, 2007)   52  

Followings are the basic example of an if then else control structure.

PHP form handling example in single page   (created at Oct 15, 2007)   62  

This example shows a very simple form together with the form handling process on a single page.got submission
";   ech...

How to get reffering URL ?   (created at Oct 15, 2007)   34  

Grabs the referring URL - get the HTTP_REFERER and save it to a variable.code snippet:

How to convert formatted date time string to datetime?   (created at Oct 12, 2007)   59  

Whatever the formatted string is, strtotime() function convert the formatted date time string to datetime.Following example shows the simple reference can convert date time string whatever the formatted input is...function foo($formatted_time){  retur...

How to remove or set time limit that defined as max_execution_time in php.ini   (created at Sep 18, 2007)   47  

PHP provides the alternate function which can control time limit that defined in php.ini. Following is the alternate function can control time limit.void set_time_limit (int seconds);Set the number of seconds a script is allowed to run. If this is reached,...

The three simplest regular expressions you will use in PHP   (created at Sep 12, 2007)   83  

The three most basic searches using regular expressions are searching for the strings start, the strings end, or for characters it contains. We can do these using the following symbols:^ indicates the string starts with the specified characters, so "^strcp...

How to get date time in Javascript ?   (created at Aug 30, 2007)   27  

Following is the simple example you can easily use.