Php Date Code Snippets


Internal Mail System or private messaging system. Easy to embed into your own projects.

23 October, 2012   

MySQL code example for sorting data in a GRID

23 August, 2014   

Correctly calculate the date of Easter Sunday.

14 February, 2011   

Build a Calendar Table

21 May, 2012   

PHP example for connecting to MySQL

PHP code example for redirecting from old URL to new URL

Asp code example to show the date a file was created

28 May, 2012   

How to add days to NSDate

06 May, 2014   

This PHP script allows you to parse multiple feeds from different sources into separate pages using SimplePie class. A fast and efficient way to serve fresh content to your site as to provides the most up-to-date information to the readers.

01 October, 2013   

This php code for mail someone from your code

03 April, 2018   

Returns the last day of the month containing the given date.

30 August, 2015   

Loads the contents of a dir an sorts them by the date of creation.

You can use a url shortener with Twitter such as tinyurl.com

This is a very common PHP question of HOW TO remove last character from string in PHP. Find below some ways how to delete last character from string in PHP.

16 March, 2014   

How to create mysql table using php. The php script as follows as:

04 February, 2012   

PHP function example that writes a name when it is called.

23 September, 2011   

An example Dates with the Ordinal Suffix . Below is the code that will do this.

02 June, 2011   

This is your most basic version of an image CAPTCHA.

30 March, 2011   

Need to unzip a file? this function can do that for you. It is reccomended that the functions.php file and the file that exicutes the unzip function are NOT in the same directory as the zip files. unzip ( string $zipfile , string $newLocation ) zipfile gets the name of the current zip file. newLocation is where you want to store all the...

01 October, 2014   

PHP example code for secure link conversion