Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I upload a file from Google Images in PHP?
    text
    copied!<pre><code>&lt;html&gt;&lt;head&gt;&lt;title&gt;Uploading Pictures&lt;/title&gt;&lt;/head&gt; &lt;body bgcolor="lavender"&gt; &lt;h3&gt;Uploading Files&lt;/h3&gt; &lt;form enctype="multipart/form-data" action="upload_move_file.php" method="post"&gt; Browse and select the picture you want to upload: &lt;br /&gt; &lt;input name="picture_file" type="file" /&gt; &lt;br /&gt; &lt;input type=submit value="Get File"/&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; (The PHP Script) &lt;html&gt;&lt;head&gt;&lt;title&gt;File Uploads&lt;/title&gt;&lt;/head&gt; &lt;body bgcolor="#33ff33"&gt; &lt;font face="verdana" size="+1"&gt; &lt;?php echo "The uploaded file is: ", $_FILES['picture_file'] ['tmp_name'], "&lt;br /&gt;"; $filename=$_FILES['picture_file']['name']; $filesize=$_FILES['picture_file']['size']; $directory='C:\wamp\www\examples\\'; $uploadFile = $directory . $filename; echo "The moved file is: $uploadFile&lt;br /&gt;"; if (move_uploaded_file($_FILES['picture_file']['tmp_name'],$uploadFile)){ echo "The file is valid and was successfully uploaded.&lt;br /&gt; "; echo "The image file, $filename, is $filesize bytes.&lt;br/&gt;"; } ?&gt; &lt;center&gt; &lt;br /&gt; &lt;img src=&lt;?php echo "\"\examples\\$filename\"";?&gt; width="250" height="175" border="3"&gt; &lt;/center&gt; &lt;/font&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>I write both html and php code to create a simple upload file form.This code for uploading a file from a the same computer to the localhost, but how can I change it to upload from Google Images? </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload