Simple Error Class





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2  ...  7 8 9 10 11 12 13 14 15 Next »
-34
Date Submitted Thu. Jul. 27th, 2006 9:53 PM
Revision 1
Beginner registered99
Tags PHP
Comments 1 comments
Php Things
5
Date Submitted Mon. Oct. 22nd, 2007 8:43 AM
Revision 1
Beginner richard123
Tags JavaScript | PHP | resolution
Comments 3 comments
This detects screen resolution using javascript and makes it available to php by way of cookies.
11
Date Submitted Sun. Oct. 29th, 2006 12:52 PM
Revision 1
Scripter SCoon
Tags JavaScript | PHP | Web
Comments 0 comments
Enforce loadig fresh script code for the external javascript files. Compatible with HTTP 1.0.
9
Date Submitted Sat. Mar. 11th, 2006 4:52 PM
Revision 1
Helper Scriptsentials
Tags PHP | Ports | Sockets
Comments 0 comments
This is a simple PHP script that will show whether a certain port/socket of a certain computer is currently open/active.
-5
Date Submitted Sat. Mar. 11th, 2006 7:28 PM
Revision 1
Helper Scriptsentials
Tags "Random Generation" | PHP | Random
Comments 3 comments
This multiple-use PHP script will randomly generate content based on a randomly generated number.
10
Date Submitted Sun. May. 20th, 2007 5:27 AM
Revision 1
Scripter SecondV
Tags Online | PHP | URL
Comments 1 comments
This simple function will check if a url is valid (going by parse_url()) and if it's 'online' - by seeing if it returns a 302, 301, or 200 status code.
5
Date Submitted Sun. May. 20th, 2007 10:58 PM
Revision 1
Scripter SecondV
Tags allow | deny | DOMAIN | PHP | post
Comments 3 comments
This small snippet will not allow _POST requests from a 'foreign' domain. It relies on the HTTP_REFERER variable.
7
Date Submitted Mon. May. 21st, 2007 12:22 AM
Revision 1
Scripter SecondV
Tags "register globals" register_globals, | PHP
Comments 0 comments
This function will reverse the affects of register_globals
12
Date Submitted Mon. Oct. 9th, 2006 7:04 AM
Revision 1
Helper serpentskiss
Tags PHP
Comments 2 comments
Here's a little snippet I got from SitePoint that I now use all the time. Add the code below to the start of each script.

Basically, what this does is checks to see if magic_quotes_gpc() is enabled on the server, and if it is, then it gets rid of all the slashes that magic_quotes_gpc() adds to input from $_GET, $_POST and $_COOKIES globals.

It's a good snippet to use, because it negates the bad programming practices that having magic_quotes_gpc() lets you get away with, and means that you don't really on PHP to validate your input; you get to do it all yourself ;-)
-17
Date Submitted Mon. Oct. 9th, 2006 7:07 AM
Revision 1
Helper serpentskiss
Tags PHP
Comments 3 comments
A little function that does some basic checking for data input by a user. Should get rid of code injection ;-)
« Previous 1 2  ...  7 8 9 10 11 12 13 14 15 Next »