Author's posts
Jun 20
How to use SOAP client in PHP
This tutorial will helps you to understand the way of invoking SOAP Web Service from PHP SOAP Client. Before Start using PHP Soap client, You need to verify that Whether SOAP Client is enabled in your PHP Web Server. To verify that create new php file with the following code. [php] <?php phpinfo(); ?> [/php] …
Permanent link to this article: https://blog.openshell.in/2014/06/how-to-use-soap-client-in-php/
Jun 19
How to use Jsonp method in JQuery
JSONP is JQuery(JavaScript) method used to request data from a server in a different domain, something prohibited by typical web browsers because of the same-origin policy. JSONP takes advantage of the fact that browsers do not enforce the same-origin policy on<script> tags. JSONP is a viable solution for cross-domain Ajax. JSONP does not work with …
Permanent link to this article: https://blog.openshell.in/2014/06/how-to-use-jsonp-method-in-jquery/
Jun 11
Mysql Query Cache
As we know, speed is always the most important element in developing a website especially for those high traffic database driven website. You can try to turn on query cache to speed up query. To speed up query, enable the MySQL query cache, before that you need to set few variables in mysql configuration file …
Permanent link to this article: https://blog.openshell.in/2014/06/mysql-query-cache/
May 01
How to declare dependencies and use composer in php
Using Composer: We will now use Composer to install the dependencies of the project. To use Composer in your project, you’ll need one file: composer.json. In this file you will describe the dependencies of your project. So let’s create the file: [code]vim composer.json[/code] Declaring Dependencies: Once you created a composer.json file within your project which …
Permanent link to this article: https://blog.openshell.in/2014/05/how-to-declare-dependencies-and-use-composer-in-php/
Apr 30
How To Install and Use Composer on Ubuntu
Introduction Composer is a tool for dependency management in PHP. It allows you to declare the dependent libraries your project needs and it will install them in your project for you. Dependency management Composer is not a package manager. Yes, it deals with “packages” or libraries, but it manages them on a per-project basis, installing …
Permanent link to this article: https://blog.openshell.in/2014/04/how-to-install-and-use-composer-on-ubuntu/
Mar 02
Rails 3 GEM to handling where the error has occurred
It’s Better Errors GEM. It will handle the error and we can see exactly where the error has occurred in development machine. GITHUB : https://github.com/charliesome/better_errors Steps to configure in our rails3 application 1. Install the gem install airbrake -v ‘3.1.8’ 2. In your Gemfile add group :development do gem “better_errors” end If you would like …
Permanent link to this article: https://blog.openshell.in/2014/03/rails-3-better-errors-gem-handling-where-the-error-has-occurred/
Mar 02
How to download file from remote URL in PHP
There are many ways in PHP to download file from the remote server. We can use php functions like copy, file_get_content, fopen, fsockopen & Curl to download the remote files. For your reference here I have explained about copy, fopen and Curl method, I have choosen these methods based on simplify and easily everyone can …
Permanent link to this article: https://blog.openshell.in/2014/03/how-to-download-file-from-remote-url-in-php/
Jan 22
Use Number() instead of parseInt() in javascript
Recently I came across the issue in converting string to integer in Javascript(JS). I was used parseInt() method to convert string value into integer value. unfortunately, I was faced issue in chrome browser but all other browsers like firefox, ie and safari are worked fine. Its too hard time for me to find out the …
Permanent link to this article: https://blog.openshell.in/2014/01/use-number-instead-of-parseint-in-javascript/
Jan 17
Accessing external website from PhoneGap application
To create a PhoneGap application, To load external webpage into android application by following the instruction. Steps: 1) Create phonegap application and configure with android. 2) Then open your activity file and make the changes, onCreate() method is calling super.loadUrl(“http://your-domain.com”); so that http://your-domain.com page is opened in the WebView as soon as application starts super.loadUrl(“file:///android_asset/www/index.html”); …
Permanent link to this article: https://blog.openshell.in/2014/01/accessing-external-website-from-phonegap-application/
Jan 03
Serailization & Unserialization in PHP
Serialization which help us to store or transport PHP data structure such as an array or object. All the storage meduim or database can store String type. It will generates a storable representation of a value. This is useful for storing or passing PHP values around without losing their type and structure. Essentially, it takes a …
Permanent link to this article: https://blog.openshell.in/2014/01/serailization-unserialization-in-php/