Search
New Code
AnyMap JS Maps 8.0.0
FlowHeater 4.1.0
Luxand FaceSDK 6.3.1
dbForge Data Compare for PostgreSQL 3.0
C# PDF 4.4.2
Bytescout PDF Viewer SDK 8.6.0.2911
AppJetty Advance Product Designer For Magento 1.0.1
Free UWP PDF Viewer SDK 1.0
FUNDRAISER Crowdfunding Script 1.0
Bytescout BarCode Generator SDK 4.61.0.952
Jango Clone Script 1.0
GetOrgChart 2.4.0
iTech Car Sell Script 2.03
ByteScout PDF Renderer SDK 8.6.0.2911
Install Package IronOcr 4.1.1
Top Code
Get Random Record Based on Weight 1.0.0
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
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
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Readymade MLM Software 2.02
Availability Booking Calendar PHP 1.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?...