PHP Code Snippets
(127)
This simple PHP function is pretty handy if you want your websites pages in the title without having to name individual ones.
It will look like:
Rate it, post comments :P
Ok, so this short php script is real usefull for if you have loads of subdirectories of completely different websites like i do. these can be webs for sale, or just random websites *shrugs* it's for your
This script doesn't take too much explaining :P
It counts an individuals clicks (respectively to their IP)
ok so;
#1 Run this SQL Query in your database manger;
Ok here goes. This is a short snippit which will give you the file name at the end of the URL. The snippint uses the pathinfo function. I might make it a function in a few days.
Do you have a contact form on your site and you get spammed by bots constantly?
With this code you create contact form with a captcha image, and that will prevent bots
$starttime - type the time for loading the script
$endtime - type time when to end the script loading
$totaltime - total time , its difference from start and end time.
A source code analyzer. Searches through code in this case php files
and finds possible vulnerable syntax. This code uses (3) arrays to store
the strings to search for & one last function for custom
This is a little snippet that will remove any non-ASCII characters from a string.
Smart Password Generator: Better than the average random password generator.
This calculates a random password letter by letter; each letter is chosen based upon the previous one. It uses combinations
This code produces a sort box for any number of arbitrary criteria on any type of data you have in your database. For this particular example we've got a product sort where users can sort by price or




