Highlight.js10Highlight.js highlights syntax in code examples on blogs, forums and in fact on any web pages. 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. But, you can increse the maximum upload file size limit by using .htaccess file. 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. 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. It’s something that tends to be implemented as an afterthought, which is unfortunate because it can be critical for the security of users of these projects. 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. <a href="/user/[username]">[username]</a> Escaping &, <, >, and " isn’t enough Why?
A huge list of Style Guides and UI Guidelines. If you are a graphic designer or an interaction designer and have ever been tasked with creating a style guide or UI guidelines document (both are different and I’ve had the pleasure to work on both of them creating templates and the actual documents for brands and products), this list should help you out as a consolidated list of references.
This list is going to be constantly updated (and will ultimately be a monster list, it’s quite modest for now) of publicly accessible style guides and UI guideline documents on the web. If you find any links not working or would like to suggest one that is not on the list, feel free to comment and let me know.