<?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); ?>
Friday, 28 February 2014
Tuesday, 11 February 2014
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.