We have 6 guests online
   
PHP Scripts arrow Free PHP Tutorials arrow Free PHP Tutorials 
 
Search
Results 1 - 10 of 30
Display #

1. 301 Redirect
(PHP Tutorials and Examples/PHP)

301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it's the safest option. The code "301" is interpreted as "moved permanently".

19/03/2007 | 3214 Hit(s) | (8 votes) | Read more...

2. DNS
(PHP Tutorials and Examples/PHP)

This is a simple PHP that dns's a selected host or ip.

16/02/2007 | 1982 Hit(s) | (7 votes) | Read more...

3. Make an easy list of your photos by MBK
(PHP Tutorials and Examples/PHP)

Just put this script somewhere and edit the $path variable to the path where the photos/images are you want to list. It searches the dir for files with the extension jpg, gif and bmp. You can add more if you want.
Then it sorts them, and lists them.

16/02/2007 | 1505 Hit(s) | (3 votes) | Read more...

4. Table rows
(PHP Tutorials and Examples/PHP)

A common function on many php (or other data driven) sites is to loop through an array and write the contents of the array to the page. It is preferable to spread your data over multiple columns instead of writing it all in a straight list thus forcing your readers to scroll forever. Here is an easy way to dynamically write your cells and rows using expressions.

16/02/2007 | 2105 Hit(s) | (3 votes) | Read more...

5. Date Compare
(PHP Tutorials and Examples/PHP)

The following function compares two dates in the dd/mm/yyyy format.

It uses the PHP function gregoriantojd() as mktime() is unreliable for
dates < 1970. The mcal_date_compare also relies on the mcal libraries being installed.

One improvement could be a third parameter passed in with the actual date format to be used.

16/02/2007 | 1185 Hit(s) | (1 vote) | Read more...

6. isDate
(PHP Tutorials and Examples/PHP)

Checks if a string is a valid date in the format dd/mm/yyyy.
Could easily be adapted to check for other formats or the ereg a little less strict i.e. allow 1/8/2001. One improvement could be a second parameter passed in with the actual date format to be checked for(e.g
if(isDate($strDate, $strDateFormat))
{
...
}
PHP functions used: ereg(), explode() and checkdate()

16/02/2007 | 3184 Hit(s) | (6 votes) | Read more...

7. Calculate minutes to hours by MBK
(PHP Tutorials and Examples/PHP)

This little recursive script calculates minutes to hours.
Example: 4 hours and 433 minutes equals 11 hours and 33 minutes

16/02/2007 | 1094 Hit(s) | (1 vote) | Read more...

8. Email validation
(PHP Tutorials and Examples/PHP)

This function checks email for validity: check for '@', '.' characters and bad characters that you can define yourself.
16/02/2007 | 1695 Hit(s) | (1 vote) | Read more...

9. Converting page titles to URL friendly titles
(PHP Tutorials and Examples/PHP)

This is the conversion method used by evil walrus to convert script titles to URL titles. Removes all special characters, except hyphens, underscores, periods, commas and forward slashes, which are converted to underscores. Two or more consecutive underscores are converted to a single underscore.

16/02/2007 | 1435 Hit(s) | (2 votes) | Read more...

10. PNG image creation - overlay text on an existing image
(PHP Tutorials and Examples/PHP)

Creating a PNG with PHP. This could be expanded to create a security image for use in forms to check for robots. Just set $string to a randomly generated string. From php.net: "This example would be called from a page with a tag like: <img src="button.php?text=text">. The above button.php script then takes this "text" string and overlays it on top of a base image which in this case is "images/button1.png" and outputs the resulting image. This is a very convenient way to avoid having to draw new button images every time you want to change the text of a button. With this method they are dynamically generated." This script taken from the PHP manual (http://www.php.net/manual/en/ref.image.php).

16/02/2007 | 2778 Hit(s) | (8 votes) | Read more...

<< Start < Prev 1 2 3 Next > End >>
  
Top

Directory Stats

There are 684 listing and 43 categories in our website

Change Language

Personal Loans
Credit Cards UK
Consolidation Loans
Loan
Western Union