Posts

Showing posts from May, 2013

How to customize position of the keyboard in iOS

First of all you need to write this code in -viewDidLoad method  [[ NSNotificationCenter defaultCenter ] addObserver : self selector : @selector (keyboardWillAppear) name : UIKeyboardDidShowNotification object : nil ]; After that create a method keyboardWillApear -( void )keyboardWillAppear {     UIWindow * tempWindow = [[[ UIApplication sharedApplication ] windows ] objectAtIndex : 1 ];          //Because we cant get access to the UIPeripheral throught the SDK we will just use UIView.     //UIPeripheral is a subclass of UIView anyways     UIView* keyboard;          //Iterate though each view inside of the selected Window     for ( int i = 0 ; i < [tempWindow.subviews count ]; i++)     {         //Get a reference of the current view         keyboard = [tempWindow.subviews objectAtIndex :i]; ...

How to increase post size in php

First of all goto the apache folder just goto your server folder(i.e your xamp or lamp or mamp or wamp folder) locate this path i.e /apache/bin/php.ini or /php/php.ini now open the php.ini file locate this line contains text like this "post_max_size = 8M" by default maximum post size is 8MB (you can post maximum 8MB of data using POST method) change the value of post_max_size=16M or 32M or 1024M as per your requirements  save the php.ini & restart your Apache server

How to enable curl option in php

First of all goto the apache folder just goto your server folder /apache/bin/php.ini or /php/php.ini locate this line contains text like this ";extension=php_curl.dll" remove the semicolon ; to uncomment it save the php.ini & restart your Apache server