Saturday, 15 March 2014
Extract images and links from website using php
Wednesday, 5 March 2014
Friday, 28 February 2014
Save an image from URL using php
<?php $imageurl ='http://sri-knowledgecorner.rhcloud.com/images/blogicon.jpeg'; $image=file_get_contents($imageurl); $imagename = basename($imageurl);//image name define('DIRECTORY', 'images/'); //save image in images folder file_put_contents(DIRECTORY.$imagenam, $image); ?>
Tuesday, 11 February 2014
Upload and display an image without a page refresh using Javascript and PHP
Bunch of jquery plugins that do this, but you’ll see here that there is nothing really complicated about it and it can easily be achieved with a couple of javascript lines.
The trick to avoid this full page refresh is to use a ‘target’ attribute on the form and have it point to an iframe. As the submit button is clicked, the browser will load up the response in the targeted iframe without refreshing the whole page.
Tuesday, 4 February 2014
Friday, 31 January 2014
What is memcache and why you use memcache for your website
How to Install Memcache in Ubuntu
Thursday, 23 January 2014
Difference Between Single And Double Quotes in PHP
It is important to know the difference between using single quotes and double quotes. In this post we will see the difference between them and which should be used when
Single Quotes:
<?php $name = 'srinu chilukuri'; $member = 'This is $name'; echo $member; ?>If echo $member variable it will print the result as it is without interpreted.
output: This is $name
Double Quotes:
<?php $name = 'srinu chilukuri'; $member = "This is $name"; echo $member; ?>output: This is srinu chilukuri
Subscribe to:
Posts (Atom)