PHPFront

Home > PHP
The PHP website created by its users!



PHP Codes


Order by: Sort Order:
Title / DescriptionViewsRatingAuthor

Redirect Plus


Given a $relocate page, itll send the headers to redirect. Make sure you don...
2283This script has been rated 4/5Drew

Show last songs listened to from a last.fm account


Displays the last songs (from 1 to 10) played by a last.fm user. Sign up fre...
1722This script has been rated 5/5Tim Malone

Multi BB Codes


Allows [code], [mail] [url=] [color=] [size=] [b] [i] [u] tags.
12267This script has been rated 2/5Joe

Get the size of a file


Returns the size of any file using filesize()
3313This script has been rated 2/5

Ip log


This code put all IP-adresses in a .txt file. Don't forget to CHMOD te log.t...
4407This script has been rated 4/5Maurits Vink

Return an Array key using a search term


Searches an array for a selected string and if it is found returns the key t...
1599This script has been rated 4/5Matthew

Validate an Email


Checks the validity of an email passed to it.
1402This script has been rated 5/5mkeefe

Replace words in a string


Find an replace words in any string using str_replace, from php.net
1592This script has been rated 2/5

foreach example


An example of how the foreach() construct can be used.
1321This script has been rated 1/5

Convert urls to links


Searches a string and converts all the url's found into clickable links.
1797This script has been rated 3/5

Arrays for beginners


A simple way of explaining the use of array's
938This script has been rated 4/5

Print first sentence


This function will print the first sentence in a given string. Great for sea...
2256This script has been rated 4/5

Countwords in a var


Use this to find the number of words in a variable
847This script has been rated 3/5

Strip blank lines


Strip blank lines or tab spaces from a string
1303This script has been rated 4/5

highlight and shorten URLs


highlight and shorten URLs with this simple function
1201This script has been rated 4/5

URL friendly paths


Make any variable URL friendly by replacing white spaces and converting non-...
1419This script has been rated 2/5

Convert Bytes to corresponding size


Takes a number in bytes and returns the number in (KB,MB,GB) for human-reada...
3549This script has been rated 4/5mkeefe

PHP Info


Display the internal variables and option within PHP
1162This script has been rated 4/5mkeefe

Check GET/POST Data


Use this script to check GET and/or POST data sent into a php script.
3182This script has been rated 4/5mkeefe

Email converter


Makes emails undetectable to email spiders.
1204This script has been rated 5/5

bb code link


Replaces [url=http://....]test[/link] with real html links.
3906This script has been rated 2/5

IMG bb code


Replaces [img]http:///....[/img] with a html img tag. Great for blogs.
2254This script has been rated 1/5

Random Number Generator


This will produce a 6 digit random unique string of numbers.
1484This script has been rated 4/5Gavin

Alternating row colors


Alternate your row colors making it easier for your users to read your site....
1711This script has been rated 4/5

PHP redirect


Redirects users or bots to another page using php headers.
2599This script has been rated 4/5