Logo
Online Now: 1

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Snippets Functions Classes

PHP Resources | MySQL Zipbase | Forums

Welcome, PHP Code Snippets

T.O.S. Change (04-13-2009)

I have been browsing the internet lately, and have seen people taking credit for my work (mostly the "JPG to ASCII Converter"). I do not like this, so... I decided to change the T.O.S. on sharing code taken from PHPSnips.com. To shorten up what the T.O.S. says: "You may share any code, as long as you re-link to PHPSnips.com, due to the fact that is were the code originally came from."

Snippets On Watch (04-13-2009)

You may have noticed the "Snippets on Watch" on the right, which is code added by others on the site. Well in the process of the new design, I have decided that I am going to remove that section, by merging that with everything else, which has already been done, so now you can see the new snippets have been merged together.

New Feature Leak #1! (03-12-2009)

I'm going to let you in on a little secret, one of the new features includes... PHP in your comments!

New Features! (03-08-2009)

The upcoming layout will have some new features implemented. I have already implemented a few of them, and I would like to keep them a surprise for you guys! The current new feature count is at 5 (implemented and non-implemented), if you have any feature suggestions, please feel free to post them at the bottom of this page, or shoot an email my way by clicking here.

New Layout in development! (03-05-2009)

Currently I am working on a new layout for the site, it has been 2 years with the current layou I think that it is time for an update!

Spam! (01-15-2009)

I have done my best to eliminate spam, and so far it is working!

Popular Snippets | Highest Score
1.  JPG to ASCII Converter 20326 Views 3.24 of 390
2.  Advanced Image CAPTCHA 7831 Views 3.15 of 267
3.  Simple User Login 7355 Views 2.62 of 305
4.  Check If User Is Logged In 5698 Views 2.84 of 298
5.  Simple Image CAPTCHA 5661 Views 2.6 of 364
6.  User Registration Form 5260 Views 3.21 of 220
7.  Add (th, st, nd, rd, th) to the end of a number 4891 Views 3.25 of 386
8.  AJAX Quickie 3878 Views 3 of 322
9.  Feet, Miles, And Inches Converter 3774 Views 2.75 of 300
10.  Create thumb from uploading photo 3583 Views 2.6 of 20
11.  Logout Inactive User 3364 Views 3.13 of 292
12.  PHP and JavaScript Popup Image 3050 Views 3.02 of 226
13.  Number Users Currently Online 2737 Views 2.9 of 293
14.  Dynamic Page Content From Links 2497 Views 2.96 of 335
15.  Dropdown Menu From An Array 2445 Views 2.81 of 281
16.  Valid Email Check 2384 Views 2.74 of 251
17.  Word of the Day 2330 Views 3 of 299
18.  Generate An Authentication Code 2329 Views 2.7 of 265
19.  Bulletin Board Code (BBC) 2240 Views 2.92 of 216
20.  Mean, Median, Mode, Range Of An Array 2003 Views 2.84 of 160
21.  Display Image/URL on Specific Days 1966 Views 2.97 of 280
22.  Script Execution Time 1963 Views 2.87 of 234
23.  Unzip Zip File 1943 Views 3.07 of 169
24.  Maintenance Mode 1908 Views 3.01 of 251
25.  Connecting To A Database 1682 Views 2.91 of 243
 
Search

Input key terms:
User Panel

User name:

Password:

Register And Post Your Own Snippets

Snippets On Watch

1.  Auth Class with (2.88 of 17)

2.  Test Please Delete (2.67 of 6)

3.  Return all repeated (3.31 of 26)

4.  Convert an integer (3.52 of 31)

5.  URL Shortening for (2.5 of 24)

6.  Monthly Content Sorting (2.82 of 22)

7.  Show String Trimmed (2.83 of 36)

8.  Human readable file (2.39 of 31)

9.  Randomize array values (2.62 of 34)

10.  Create a recursive (2.89 of 27)

New Snippets

1.  Tag Builder (0 of 0)

2.  Get Inserted ID (3 of 1)

3.  Watermark An Image (3.33 of 3)

4.  Check Prime Numbers (1.8 of 5)

5.  Large Data One (1 of 2)

6.  Define a variable (1 of 2)

7.  Alexa/Google Page Rank (2 of 1)

8.  Return Between (1 of 1)

9.  Database Search (3.5 of 2)

10.  Text URL to (2 of 1)

11.  Auth Class with (4 of 4)

12.  Convert an integer (3.26 of 19)

13.  Return all repeated (3.16 of 19)

14.  URL Shortening for (2.26 of 19)

15.  Monthly Content Sorting (2.5 of 18)

16.  Show String Trimmed (2.92 of 25)

17.  Human readable file (2.22 of 23)

18.  Randomize array values (2.48 of 23)

19.  Create a recursive (2.72 of 18)

20.  Simple URI location (2.57 of 21)

21.  Tell how many, (2.33 of 15)

22.  Create thumb from (2.6 of 20)

23.  Tell how many, (2.53 of 17)

24.  Site maintenance (2.2 of 10)

25.  Replace substrings in (3.22 of 9)

Help Files
Functions Arrays 3 Page Login 2 Page Login SQL Injection
Home Page Comments

Add Your Comment

mart3ndo
05/01/2009
Trying to leave a comment on the 3 Page Login page, but am getting a 500 Internal Server Error

When trying the 3 Page Login, i am getting:


Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /[location]/process/checkLogin.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at /[location]/process/db.php:9) in /var/www/www.dumpyourload.co.uk/3/admin/process/checkLogin.php on line 18

Any ideas?

[location] means the path, which i removed
Admin
04/12/2009
Yeah...

It could be because it is Easter weekend, it seems a little slow...

But I am working on the new layout for the site, and it is almost done!
cigraphics
04/12/2009
Is this site still active ?
vapoorize
12/17/2007
Have a section to view user submitted functions only, so you can have a user function DB. Allow when posting snippets to mark it as a function so you include it in the function section.

All snippets are not the same, so I suggest other ways to mark your snippet, so you can better categorize your snippets for easy browsing/searching...
Steven Smethurst
12/06/2007
I like your site.
a few suggestions.

- A RSS feed of the new snippets and comments on snippets.
- When making a comment on a snippet, I would like to be able to see the snippet on the same page, so I can easily refer to it.
- I want to submit some snippets. maybe a contact page where i can submit them, you look over them and approve/post them on the site.

Great site, I will defiantly be back.
ACE
11/02/2007
An excellant PHP Script Resource website, very helpful, I am wondering if you are going to make it so people can submit their own scripts?

Regards ACE

Add Your Comment

Home | Forum | Free PHP Web Hosting | Contact | Terms & Conditions |  
Donate
PHPSnips.com - ©2009