Web
How to output JSON using PHP
PHP (version 5 >= 5.2.0, PECL json >= 1.2.0) provides a method json_encode to convert array to string.
$sample = array(
'name'=>'My Name',
'email'=>'my_email@example.com'
);
echo json_encode($sample);
How to invite others to Google Wave
You can invite anyone to Google Wave. Google Wave is now open for all. Anyone can signup to Google Wave. Google opened Wave as part 2of Google Labs on 18 May, 2010. Now you can add anyone to new or existing wave even if he is not in your contacts. An invitation will be sent to him to join Google Wave with the description of wave. Just follow these steps.Read More »How to invite others to Google Wave
How to disable page jump while clicking on anchore
Sometimes we want to perform some javascript actions using link but don’t want to jump to another page. We can do this using event object.
For example we have a link say:
Say Hello
Clicking this link will show an alert saying “Hello” but will then move to http://www.example.com/.Read More »How to disable page jump while clicking on anchore
Why PHP ini_set() does not work with upload_max_filesize
‘upload_max_filesize’ and ‘post_max_size’ are of type PHP_INI_PERDIR, which means “Entry can be set in php.ini, .htaccess or httpd.conf”. So you can’t set it in your script.
We can set PHP_INI_PERDIR settings in a .htaccess file with ‘php_flag’Read More »Why PHP ini_set() does not work with upload_max_filesize
How can I get the name of the calling method in PHP
I just fell in need of knowing the name of the method that is currently being called. After having a few minutes of unsuccessful searching i just thought of Late Static Binding and here the PHP Manual helped me.
Read More »How can I get the name of the calling method in PHP
How to create Google Gadget Ads
The APIs stuff is just making life easier.
Gadgets are like small applications we play with at different platforms.
Google already have gadgets platform available at iGoogle. Now google introduced Gadget Ads for Adwords. Now you can have more interactive ad campaigns with gadget ads.Read More »How to create Google Gadget Ads
How to Learn Google’s Javascript APIs: AJAX Playground
Google gives a lot of AJAX solutions through AJAX APIs that the developers love to use. APIs need a little attention to be implemented.
How do you believe and get courage of using new things until and unless you have a live visual demo of that.Read More »How to Learn Google’s Javascript APIs: AJAX Playground
How to save cURL output to string
You can save the cURL output as a string for further manipulation. Following code takes care of: // create curl resource $ch = curl_init(); //… Read More »How to save cURL output to string