<?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
Save an image from URL using php
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
Subscribe to:
Posts (Atom)