Test a string to see if it contains HTML within it.
scope of isAjax function is to check whether request is done via ajax or not.
Want to see the zodiac sign of something? using this function to display the zodiac of the object.
This simple function returns the file extension of a file, such as ".php".
This is I think a cleaner way to handle generating a list of selection options. The only thing that needs to be done to add or remove a country is to modify the countries array.
A wrapper to PDO to make writing PDO queries simpler and easier.
This Snippet will check and see if if a user is logged in or not.
Implode on an array's keys instead of its values.
Easily pass an array to a cli interface, then read it in the other script.
This will display all the directories in the selected directory (not sub directories of the sub directories).
You can get your application key and secret by registering at [url=http://grabz.it]GrabzIt[/url].
Gets a subset of words from a string.
This script shows how to escape characters in php
Displays how long ago something happened, such as when something was posted. "1 day ago", "2 months ago", etc.
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 shows how to make a simple registration form.
Allows you to change something on a daily basis using just php.
Updated from the "Zodiac Signs" function already posted here. The other function had some overlapping month/day areas that would determine some birthdate/sign combinations incorrectly. (ie: 10/27 as Libra instead of Scorpio.)
This is a css "compiler" and minifier to make styling better for performance and simplify the linking stylesheets. If you ever had a project where you had to use a lots of css files to use in order of team work or just for particular styling, you know what I'm talkin about. I hope it will be useful. Enjoy, use or even develop it to be more efficient. If you feel you made nice changes on it, that could be make it more efficient please contact me. *THIS SNIPPET HAS A VERSION FOR LESS!! IF YOU WOULD LIKE TO USE IT PLEASE CONTACT ME TOO! * :)
This script allows adding first and last name to a file (users.log) and then just read it out to the screen. It can be used for creating a guest book without a database.