background preloader

PHP

Facebook Twitter

HybridAuth, Open Source Social-Signle-Sign-On Solution for authentication through Facebook, Twitter, Google, Yahoo, MySpace, LinkedIn, AOL, Vimeo, FourSquare, OpenID and other Identity providers. PHP & jQuery image upload and crop v1.2 | WebMotionUK. PHP & jQuery image upload and crop v1.1 We are looking for new features to be added to this plugin, please leave your requests in the comments on the following page : JQuery / PHP Upload and Crop – Feature Request Due to popular demand, further updates have been made to this script, to allow upload of JPG, GIFs and PNG images!

Same great functionality now even more useful. Please note the old script is still available at PHP & jQuery image upload and crop. If you are not familiar with the concept, it may be worth reading the old article first. You can now upload different types of images, JPG, GIFs and PNGYou can now upload images and have a random file name (this fixes the caching issue some of you have had)The image upload error check has been fixed (thanks to DevWooty) As with the previous script, ensure you have the following: PHP 4 or Higher (It has been tested on Version 5)PHP GD LibraryjQuery ver 1.2.3 or HigherImage Area Select plugin by Michal Wojciechowski 1. 2. 3. 4.

Crash course in PHP self-defense – A HTML security primer. Security is an onion. The more layers the better the protection. This blog post talks about the layer that deals with inspecting and filtering user input and disengaging harmful html output. Of course there are many other layers like secure transport (https), secure passwords, securing the web server, the database server, the PHP runtime, the file system and the operating system.

Figure 1: Karate Kata Input is any data that is not generated by your application, but rather provided by users. Consider all input like for example a string value to be purposely crafted with the intend to take your web server over or down. Consider input to be extremely hazardous. Input can come from form data, URLs, cookies, http headers and RSS feeds. Validate values and make sure that they within a valid rage and expected range. The PHP documentation has a whole chapter on data filtering. Letting bad input pass through the system is not necessarily a direct thread to your application. XSS Cross site scripting. ThePhig.com - An OpenSource PHP Image Gallery.