Results 1 to 5 of 5

Thread: remote file upload with php and shell wget

  1. #1
    Junior Member
    Join Date
    Aug 2010
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default remote file upload with php and shell wget

    well i am totally stuck in this.. i have got two script to download file and neither are working..

    PHP Code:
    <?php if (isset($_POST['links'])){    $links explode("\n",  $_POST['links']);        chdir('files');        foreach  ($links as $link){        $link escapeshellarg(trim($link));                shell_exec('wget ' $link '&>  /dev/null &');    }        chdir('..');} ?><form  action="" method="post">     <textarea name="links"  rows="30" cols="60">Links go  here</textarea>    <br />    <input type="submit" value="Upload" /></form>
    where is the problm?? i am not getting any error but files are not downloading?? why?? please some one help me

  2. #2
    Junior Member
    Join Date
    Aug 2010
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    need help please.. wget is not working i dont know why. is there a problm with syntex?

  3. #3
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,515
    Thanks
    17
    Thanked 814 Times in 511 Posts
    Rep Power
    10
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


  4. The Following User Says Thank You to nixcraft For This Useful Post:

    tunboy (5th August 2010)

  5. #4
    Junior Member
    Join Date
    Aug 2010
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    well, do you think curl can download file if the browser is closed??

  6. #5
    Is that all you got? rockdalinux's Avatar
    Join Date
    May 2005
    Location
    Planet Vegeta
    Posts
    987
    Thanks
    27
    Thanked 71 Times in 62 Posts
    Rep Power
    20

    Default

    Quote Originally Posted by tunboy View Post
    well, do you think curl can download file if the browser is closed??
    For backround download after the browser close, deploy some sort of jobs systems and run it using cron.
    Rocky Jr.
    What's wrong? I hope I am not making you uncomfortable...

    Never send a boy to do a mans job.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Ubuntu Linux File Upload / Creation Email Notification
    By cristobalaz in forum Ubuntu / Debian
    Replies: 12
    Last Post: 8th December 2010, 03:07 AM
  2. script to upload latest file
    By liz in forum Shell scripting
    Replies: 4
    Last Post: 24th February 2010, 07:37 AM
  3. blocking file upload with squid
    By ifti in forum Proxy Servers
    Replies: 4
    Last Post: 23rd February 2010, 05:50 PM
  4. wget - How to check the integrety of the downloaded file
    By jsundar in forum Shell scripting
    Replies: 5
    Last Post: 7th January 2010, 03:46 PM
  5. Vsftpd control upload file size limits
    By jaysunn in forum CentOS / RHEL / Fedora
    Replies: 1
    Last Post: 6th May 2009, 11:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •