Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services.
Tag: php
Htaccess: Htaccess tips
A .htaccess (hypertext access) file is a directory-level configuration file supported by several web servers, that allows for decentralized management of web server configuration.
JQuery AJAX with PHP tips
Some people have faced problem in use of jquery ajax with PHP that how to post and how to display response data from PHP.
Here i am using different kind of examples for jquery ajax using PHP.
Converting character encoding
Introduction ICONV
Iconv is a computer program and a standardized API used to convert between different character encodings.
This module contains an interface to iconv character set conversion facility. With this module, you can turn a string represented by a local character set into the one represented by another character set, which may be the Unicode character set. Supported character sets depend on the iconv implementation of your system. Note that the iconv function on some systems may not work as you expect. In such case, it’d be a good idea to install the » GNU libiconv library. It will most likely end up with more consistent results.
PHP: Enabling, disabling magic quotes
Magic Quotes is a process that auto magically escapes incoming data to the PHP script. It’s preferred to code with magic quotes off and to instead escape the data at runtime, as needed.
Magic quotes is a controversial feature of the PHP scripting language, which was introduced to help newcomers write functioning SQL commands without requiring manual escaping. It was later described and widely misinterpreted as help to prevent inexperienced developers from writing code which is vulnerable to SQL injection attacks. This feature is officially deprecated as of PHP 5.3.0, and removed in PHP 5.4 due to security concerns.
ImageMagick: Resize, Covert and Merge Image
Use ImageMagick to convert, edit, or compose bitmap images in a variety of formats. In addition resize, rotate, shear, distort and transform images automagically.