background preloader

Other

Facebook Twitter

Anime Sites. Anime Reipu. Useful JavaScript and jQuery Tools, Libraries, Plugins - Smashing Magazine. Advertisement Recently we’ve been receiving more requests for carefully selected, useful round-ups. We try to avoid round-ups on Smashing Magazine, but sometimes the format is useful and — if the resources are relevant — can be extremely helpful. Besides, we are glad to drive traffic to some obscure, yet useful resources and thus support the developers of these resources. In this round-up, you’ll find some of the useful JavaScript and jQuery tools, libraries and plugins that we have stumbled upon recently. Hopefully, you’ll find them valuable for your upcoming projects. Among other things, you’ll find handy services and online utilities, recently released JavaScript libraries and jQuery plugins. You might want to take a look at the following related posts: Useful JavaScript Libraries Blackbird: Open Source JavaScript Logging Utility6Blackbird offers a dead-simple way to log messages in JavaScript and an attractive console to view and filter them.

SlickGrid! JavaScript Tools and Utilities. Upload large or big file in PHP using .htaccess. Advertisement I’ve seen that many of my friends are struggling with the uploads of the bigger or larger files in PHP. After looking at their struggle, i’m here to solve the problem of uploading larger or bigger files in PHP. Most of the web servers are configured such a way that a user can only upload the maximum file size of 2MB. So there might be the problem for the people who wants to upload the .pdf file of size around 15MB. Here is a small tips for you which you can use to upload such a large file using file field of the form and move_uploaded_file() function in PHP. 1) Create a .htaccess file in the root folder of web server. 2) Put the following code in side the .htaccess file and save it. php_value upload_max_filesize 20M php_value post_max_size 20M php_value max_execution_time 200 php_value max_input_time 200 Now you can upload the file-size up-to 20MB in a simple way using file field in your html form and move_uploaded_file() function available in PHP.

Popularity: 48% [?] Ajax Upload; A file upload script with progress-bar, drag-and-drop. There's more to HTML escaping than &, <, >, and " A few days ago I tweeted: If I had a dollar for every HTML escaper that only escapes &, <, >, and ", I'd have $0. Because my account would've been pwned via XSS. " This was exaggeration for effect—there aren’t many cases where a simple XSS injection could actually empty a bank account—but I wanted to make a point. By some coincidence, I’ve found myself working with various open source projects recently that take a half-assed approach to HTML escaping.

This post is not an introduction to HTML escaping. Note that this post only discusses escaping, which is something entirely different (and far less complicated) than sanitizing. Escaping < and > isn’t enough The worst HTML escaper I’ve seen in a major open source project only escapes the < and > characters. For example, let’s say I have the following template, and I’m going to replace the placeholder values, indicated in [square brackets], with HTML-escaped user input: <a href="/user/[username]">[username]</a> Escaping &, <, >, ", ', `, , ! Why? A huge list of Style Guides and UI Guidelines.