Strip HTML





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

« Previous 1 2  ...  12 13 14 15 16 17 18 19 20 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
12
Date Submitted Mon. Oct. 9th, 2006 8:18 AM
Revision 1
Helper shell
Tags PHP
Comments 1 comments
Over the summer, I worked on a project in which I needed to parse logfiles which were in the following format:

IP|USE|TIME>IP2|USE2|TIME2>

and so on.

When I parsed them to display the log file in a user-friendly fashion, I used the following code:
6
Date Submitted Mon. Feb. 12th, 2007 7:00 PM
Revision 1
Helper snowdonkey
Tags "hits counter" | cookies | PHP
Comments 2 comments
A simple page hits counter that uses a single cookie to tell the user how many times they have visited the page.
2
Date Submitted Tue. Apr. 10th, 2007 9:39 PM
Revision 1
Helper snowdonkey
Tags Form | PHP | Validate
Comments 3 comments
The following script is a single interface for pre-validating any HTML form. It lets you validate your form data the way you want, while handling the rudimentary tasks itself.

1) Change just one variable to make it work with $_GET or $_POST or $_REQUEST.

2) Name which elements are 'required' all at once in a hidden HTML text input.

3) Easily provide field descriptions in hidden HTML text inputs that you can use to print error statements.

4) Call a single function to print out error statements that you can easily style with CSS.

5) It automatically checks if fields marked 'required' have been filled out.

Most of the pre-validation code is from PHP 5: Unleashed by Sams Publishing. I found it extremely useful for a recent project. Sharing it here, I removed some unnecessary functions, and tried to simplify some points.

All the comments are my own; hopefully I provided more than enough explanation.
10
Date Submitted Tue. Jul. 25th, 2006 11:39 AM
Revision 1
Beginner soccer022483
Tags PHP
Comments 2 comments
I'm trying to load an object into a session variable.
13
Date Submitted Fri. Oct. 20th, 2006 8:10 PM
Revision 1
Beginner stalfos
Tags PHP | Recursive | syntax
Comments 1 comments
Recursively checks for all *.php and *.tpl files in the directory specified (or the current directory if one is not specified) and runs `php -l $file`. Only outputs the errors.
31
Date Submitted Fri. Aug. 4th, 2006 9:43 AM
Revision 1
Syntax Master sundaramkumar
Tags CSS | HTML
Comments 3 comments
a simple css way to add shadow to tables and Divs
13
Date Submitted Fri. Aug. 4th, 2006 9:46 AM
Revision 1
Syntax Master sundaramkumar
Tags CSS | HTML
Comments 3 comments
Using styles we can add scrollbars for large table where the space is a constraint
« Previous 1 2  ...  12 13 14 15 16 17 18 19 20 Next »