PHP Random Number





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

« Previous 1 2 3 4 5 6 7 8 9  ...  17 18 Next »
7
Date Submitted Wed. Sep. 27th, 2006 10:51 AM
Revision 1
Scripter shachi
Tags function | reverse | String
Comments 3 comments
Turns any string backwards. If you input "Test" it gives out "tseT". Hope it's useful.

The snippet shows how to use it.
10
Date Submitted Wed. Dec. 20th, 2006 10:26 AM
Revision 1
Scripter shachi
Tags JavaScript | manipulation | removeCharAt | String
Comments 1 comments
This simple function simply removes the character at the given index from a string.

NOTE: The count starts from 0
10
Date Submitted Thu. Dec. 21st, 2006 3:48 AM
Revision 1
Scripter shachi
Tags addCharAt | JavaScript | manipulation | String
Comments 0 comments
Adds any character at the given index of a string.

NOTE: Count starts from 0
9
Date Submitted Thu. Dec. 21st, 2006 4:09 AM
Revision 1
Scripter shachi
Tags JavaScript | Number | times
Comments 3 comments
This script lets you do any action the number of times specified.
8
Date Submitted Wed. Oct. 12th, 2005 9:50 PM
Revision 1
Helper ses5909
Tags CSharp | HTML | String | Strip
Comments 0 comments
Strip HTML Tags From a String
-4
Date Submitted Wed. Oct. 12th, 2005 9:51 PM
Revision 1
Helper ses5909
Tags HTML | String | Strip | VB.NET
Comments 1 comments
Strip HTML Tags From a String
5
Date Submitted Thu. Nov. 3rd, 2005 7:10 PM
Revision 1
Helper ses5909
Tags "SQL Server" | Portion | SQL | String
Comments 0 comments
Return a Portion of a Character String
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 ;-)
11
Date Submitted Mon. Oct. 9th, 2006 4:57 AM
Revision 1
Helper serpentskiss
Tags Password | Random
Comments 1 comments
Creates a random string, usefull for passwords etc.

Use: $password = makeRandomPassword($Length);

If $Length is not specified (ie $password = makeRandomPassword();) then it will default to 8 characters
« Previous 1 2 3 4 5 6 7 8 9  ...  17 18 Next »