This will uppercase every letter of a string, unless you tell it not to.
The definition of Friendly URL defined and explained in simple language
this code snippet will show the accurate ip address of a user. Most of the examples lack the ability to use the php code for proxy as well. [url=http://topgravity.com/find-my-ip-address/]Demo[/url]
This will check an email, to see if it is in a valid format.
To to download code and example, [url=http://j.gs/447947/uacheckphp]Click here[/url] To remove the credits, please contact me at email@example.com.
This script will extract urls from an html string, and can either return the urls as they are in the html or as formatted urls with http://
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.
The API class for the tyny.us Link Shortening service. Requires FREE site account, and API key.
Outputs the number of users online, and who those users are without using a database.
Take a text file and display an image on certain days (such as a holiday logo).
This small function returns an encoded string to embed images, inline, inside your html/css code and reduce the number of calls to the server and speed up page load. You can see an [url=http://www.barattalo.it/2013/12/04/embedding-images-html-css-php/]example of usage here[/url].
Allows you to change something on a daily basis using just php.
Do you display data that comes from a database? make it easy to read by making the backgrounds alternating colors.
All this snippet really needs is 2 arrays containing different values. The first array will be the field names in the table you're submitting to. The second array will hold the submitted data to add into the new record. You will need to arrange the fields and values in order for the snippet to work properly. Here's how it works. The first parameter needs the table name you're creating the new record in. The second parameter will be the variable that contains the array of field names of the table you have chosen. The third parameter will contain the values to add into the field names in it's own record. The fourth parameter is option. Adding true to it will return the last ID that mysql auto incremented to your PHP code, so you may use it in any way you like. Like the example shown, the $insert variable is going to retrieve the ID that Mysql sent back to be used in a header redirection. This code works for mysql_* functions, but you can modify it to work with MySQLi too.
Convert text URL's in a string to an HTML link.
Generate a file cache, this is usually good for your database especially on content that doesn't change often.
Put your site into "maintenance mode" without disrupting form posts.
Gets a subset of words from a string.
I was working on a advert site for a buddy, and needed to get the traffic's country code. This retrieves data (JSON format) and decodes it to get the user's country. If json_decode works on your server, you can remove json_decoder function, and change $json_Co=json_decoder($getCo); to $json_Co=json_decode($getCo);