upload files to my server through url(internet)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    upload files to my server through url(internet)

    plz give me php script from which i can directly upload files to my server through url(internet)

    Plz explain how to make the script work also

    #2
    search on the net for something called file snatcher, its probably shared and discussed here already, so use the search button
    tinyurl.com/earnbymobile
    Easy earning for Indians
    ---------------------
    Alternative mobile advertising network .. Minimum 100 USD pay / NET15 pay cycle, Good Brand, Best targeting for Android
    goo.gl/6vub3

    Comment


      #3
      PHP Code:
      $url 'http://site.com/image.png';
      $content file_get_contents($url);
      $filename end(explode('/',$url));
      $fp fopen('directory/image.png''w'); // chmod 777 the directory
      fwrite($fp$content);
      fclose($fp); 
      Advertise your mobile site for FREE with AdTwirl

      Comment


        #4
        Thanks For the reply but where will be the uploaded file saved

        Comment


          #5
          it will be uploaded to directory folder of ur server
          Code:
          $url = 'http://site.com/image.png'; 
          $content = file_get_contents($url); 
          $filename = end(explode('/',$url)); 
          $fp = fopen('directory/image.png', 'w'); 
          fwrite($fp, $content); 
          fclose($fp);

          You should change the chmod of the directory specified in the bracket ('directory/image') to 777

          ;)

          Or try this


          Attached Files

          Comment

          Working...
          X