Search
New Code
Database Converters for Windows 3.45
UberEats Clone Script 1.0
Last.FM Php Script 1.1
Cashback Script PHP 1.20
Online Food Ordeing System 1.0
Thumbtack Clone Script 1.0
Easy CSS Menu 5.0
Bytescout PDF SDK 1.7.0.222
Kickstarter clone script 2.0.5
Indiegogo Clone 3.0
Mercato 1.0
Readymade PHP Classified Script 3.3
Udacity Clone Script 1.20
PHP News Script 1.0.5
Exe Guarder 4.14
Top Code
PHP Image Resize Script 1.0
Jango Clone Script 1.0
Best Spotify Clone 1.0
Get Random Record Based on Weight 1.0.0
Travel Portal Script 9.29
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Sine Wave Using JavaFX 1.0
ICPennyBid Penny Auction Script 4.0
Code Listing by Garel Alex

Code 1-2 of 2   






As you display message on a web page, you have to sanitize input data coming from users to avoid XSS. Here is a small recipe where we can use a special class for our string to be sure we get safe all the way long.



Find a unique name based on a prefix for a content in a container
(eg. a file in a directory) adding a digit to the name

Does it in log2(n) + log2(n/2) were n is the number of duplicates

This would be used eg. in a CMS?...