Top

PHP Code Snippets

  (127)  
Sort by 
Just a pretty simple Higher/Lower Script
Tags: game  games  high  higher  low  lower  php  xstatic 
3 comment(s)   |   Score: 0.0   |   Language: PHP   |   Posted by F*U*R*B*Y* on May 11, 2008
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
7 comment(s)   |   Score: 3.0   |   Language: PHP   |   Posted by jonesy44 on Apr 28, 2008
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
Tags: .php  css  directory  file  files  handle  jonesy  jonesy44  list  php  style  while 
3 comment(s)   |   Score: 0.0   |   Language: PHP   |   Posted by jonesy44 on Apr 24, 2008
Fairly useless slots game. hehe. can be used on any named webpage, the script will retrieve the name and re-direct blaaa. not much to it really. i was learning functions, and came up with it :P Example:
Tags: game  jonesy  jonesy44  php  script  slots 
22 comment(s)   |   Score: 0.0   |   Language: PHP   |   Posted by jonesy44 on Apr 23, 2008
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;
6 comment(s)   |   Score: 0.0   |   Language: PHP   |   Posted by jonesy44 on Apr 20, 2008
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.
Tags: filename  url 
0 comment(s)   |   Score: 0.0   |   Language: PHP   |   Posted by itsupportnotes on Apr 19, 2008
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
Tags: contact  form 
1 comment(s)   |   Score: 9.5   |   Language: PHP   |   Posted by Delicon on Apr 17, 2008
$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.
Tags: generated  page  time  web 
4 comment(s)   |   Score: 5.5   |   Language: PHP   |   Posted by Delicon on Apr 11, 2008
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
Tags: analyzer  php  source 
0 comment(s)   |   Score: 0.0   |   Language: PHP   |   Posted by Delicon on Apr 10, 2008
This is a little snippet that will remove any non-ASCII characters from a string.
Tags: ascii  pregreplace  strip 
0 comment(s)   |   Score: 0.0   |   Language: PHP   |   Posted by Hawkee on Mar 31, 2008
Password = jonesy I'll leave it up for a week or two as an example. If you have any questions, drop me a PM or leave a comment
Tags: articles  id  news  php  script  sql  titles  web  webpage 
11 comment(s)   |   Score: 4.0   |   Language: PHP   |   Posted by jonesy44 on Mar 31, 2008
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
1 comment(s)   |   Score: 0.0   |   Language: PHP   |   Posted by Gforce20 on Mar 24, 2008
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
Tags: database  mysql  search  sort 
1 comment(s)   |   Score: 9.0   |   Language: PHP   |   Posted by Hawkee on Mar 24, 2008
i don't think i'm the creator of this, found on HDD, last modified date is over 3 years so *shrugs* rewrote it today to be in one file ;) Installation: filename.php?type=setup <--- setups the tables
Tags: forum  forums  furby  mysql  php  xstatic 
8 comment(s)   |   Score: 4.0   |   Language: PHP   |   Posted by F*U*R*B*Y* on Mar 15, 2008
IRC
Created to be used for connecting to IRC clients using PHP on a linux system.
4 comment(s)   |   Score: 7.0   |   Language: PHP   |   Posted by kingskrown on Mar 10, 2008
1 2 3 4 5 6 7 8 9 Next
Bottom