PHP Scripts
|
Login
|
Register
|
Search
|
Contact
Scripts
Articles
Jobs
Resources
Snippets
Directory
Forum
Are you interested in
selling one of your websites
? If you are, check out
WM Media
, which is a company that
buys websites
. They have bought websites ranging from $1k to $250k.
If you are looking for hosting, we highly recommend
Liquid Web
Programming code snippets
Ajax
[
2
]
Java
[
2
]
Shell
[
4
]
ASP
[
1
]
JavaScript
[
21
]
SQL
[
1
]
Actionscript
[
21
]
Linux
[
0
]
SSH
[
0
]
C and C++
[
1
]
Perl
[
4
]
Unix
[
0
]
CFML
[
0
]
PHP
[
121
]
VB
[
0
]
CGI
[
0
]
Python
[
0
]
XML
[
0
]
CSS
[
9
]
Ruby
[
4
]
Other
[
0
]
HTML
[
4
]
Regex
[
1
]
Recently added snippets
Popular snippets
Top10 snippets
PHP - Array Concatenation
Concatenates any number of arrays and/or non-arrays into a single array.
PHP
Regex - PHP - PCRE English Pluralization
Uses preg_replace to add an 's' to a word. Minimal or no success on irregular pluralizations (does not work on 'deer', 'child', etc.) and proper nouns.
Regex
Cross browser transparency css
Cross browser transparency
CSS
Min-Height Hack
Min-Height Hack for Cross browser Compatibility
CSS
PHP - Write Array to File/Compress Array
Writes an array to a file; keeps indexes intact. See the code below for an example. Also contains methods to compress an array into a string and checking if an array contains arrays. Might be made to be more efficient in the future.
PHP
JavaScript - Draw
Used to draw shapes on the page. I feel it necessary to warn you that these shapes tend use a lot of memory fairly quickly. Be careful if you decide to use this code.
JavaScript
Javascript - inArray
Adds (associative) array searching to the Array object. Returns the true if found, false otherwise. Please note that this is very similar to the "indexOf" method, only the key is not returned and the method allows for associative arrays.
JavaScript
JavaScript - window.onload Alternitive
Instead of using (or possibly overriding) the window.onload event, you can use this alternative. Simply replace "// <YOUR CODE HERE>" in the "init" function with your code.
JavaScript
JavaScript - Floating Image Preview
As the title says, this snippet creates a floating image preview next to the mouse when it's hovering over a link to that image. It doesn't work in IE; I'm working on that. Also, I did not write the original code, I just made a whole lot of modification
JavaScript
JavaScript - Mouse X/Y Capture
Simple way of capturing the mouse's X and Y coordinates. Sets the coordinates to "X" and "Y". Start capture by calling "beginXYcapture" and end with "endXYcapture". Method "xyChanged" returns true if ei
JavaScript
AJAX - Default Code
Simply default AJAX code used in many (if not all) AJAX applications.
Ajax
JavaScript - Size converter
Converts an amount of bytes into a more human-readable format. Also includes a function (split from the original function) which returns the metric prefix for a given "position". Please see the documentation above each function for more informat
JavaScript
Java - Size converter
Converts an amount of bytes into a more human-readable format. Also includes a function (split from the original function) which returns the metric prefix for a given "position". Please see the documentation above each function for more informa
Java
PHP - Size converter
Converts an amount of bytes into a more human-readable format. Also includes a function (split from the original function) which returns the metric prefix for a given "position". Please see the documentation above each function for more inform
PHP
PHP - Windows Filename Validation
Tests if a filename would be valid on a Windows system. Checks for invalid characters and names reserved for DOS devices.
PHP
Ajax
ASP
Actionscript
C and C++
CFML
CGI
CSS
HTML
Java
JavaScript
Linux
Perl
PHP
Python
Ruby
Regex
Shell
SQL
SSH
Unix
VB
XML
Other
→ LATEST NEWS & ARTICLES
Form Handling (basic) Part 1
This tutorial will teach you how to make a form on your website send you an e-mail without exposing your email address
→ No comments added yet
Anonymous Email System
Allow registered users of your site to send mail to other members without revealing any email addresses
→ No comments added yet
10 tips to speed up your web site building with Dreamweaver.
Dreamweaver is one of the top HTML and code editors according to me. I tried others including Frontpage, but i always came back to Dreamweaver.
→ No comments added yet
Web tools of the month
The best web tools of the month by roScripts
→ No comments added yet
→ we recommend
Sell Websites →
Best place to sell your website.
Simple PHP →
Learn PHP now with videos and books.
Wordpres Script Generator →
Create wordpress plugins in minutes.
PLR Poster →
Post hundreds of articles to wordpress blogs at once.