Results 1 to 5 of 5
-
10th May 2011, 06:46 PM #1OPMember
php remote upload code fix needed :)
Hey,
I used this code for remote upload of pics
Downloading of pics from remote server to my image host.
My Image Host :
Code:www.imgair.net
Code:http://imgair.net/remote.php
Code:<?php function remoteUpload($url) { $newfname = "images/".str_replace('%20',' ',basename($url)); $file = @fopen ($url, "rb"); if($file) { $newf = fopen ($newfname, "wb"); if ($newf) { while(!feof($file)) { fwrite($newf, fread($file, 1024 * 8 ), 1024 * 8 ); } if ($file) fclose($file); if ($newf) fclose($newf); chmod($newfname,0755); if(file_exists($newfname)) { //add the image to your database //print the path of the image } else error('There was an error uploading that image.'); } else error("We're sorry, but there was a problem uploading that image. It probably has an incorrect extension."); } } } ?>
also , i wanted to know if the script displays the image link that has been uploaded.
Please help me out with this
Thanks,
SpeedBusspeedbus Reviewed by speedbus on . php remote upload code fix needed :) Hey, I used this code for remote upload of pics Downloading of pics from remote server to my image host. My Image Host : www.imgair.net The Script is here : http://imgair.net/remote.php Rating: 5
-
10th May 2011, 08:10 PM #2Respected Member
When you get that 500 error normally a error log is created in the folder it is run or in the root folder.
Check and see if there is one to give us more information.
-
11th May 2011, 05:45 AM #3OPMember
Thanks for the reply.. but i dont see any log file.. is the script proper ?
-
11th May 2011, 04:56 PM #4Respected Member
Looks like you have fixed the problem Nice work.
-
11th May 2011, 04:57 PM #5OPMember
Yup.. Just got it fixed about 4 hours ago
Thanks
now i just gotta hope that my site gets famous !
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
filesonic not pass between them and the fileserve remote file upload to upload the ot
By uvb76 in forum File Host DiscussionReplies: 3Last Post: 28th Apr 2011, 12:28 PM -
Torrent upload in Shareflare.net. High-speed remote upload on the server
By Shareflare in forum File Host DiscussionReplies: 10Last Post: 27th Mar 2011, 05:06 AM -
i need filesonic php upload code
By chems in forum Web Development AreaReplies: 26Last Post: 20th Feb 2011, 07:28 PM -
FileMo - $10 for 1000 downloads - Remote Upload - Huge Upload limit - All Countries!!
By awaisuk in forum Affiliate Programs PromotionReplies: 7Last Post: 11th Jun 2010, 04:41 AM -
Image Upload in php. Code snippet #2
By SplitIce in forum Tutorials and GuidesReplies: 5Last Post: 31st Oct 2009, 07:40 AM
themaCreator - create posts from...
Version 3.51 released. Open older version (or...