Launching vuze via PHP/apache

Discussion in 'Web Design and Development' started by Abominable, Mar 17, 2009.

  1. Abominable macrumors newbie

    Nov 29, 2006
    Hello there,

    I'm not sure where to post this, but this looks like a pretty good place.

    I'm trying to set up some sort of torrent uploader for my brother. He doesn't have a very good internet connection where he is, and if he could somehow automatically upload the torrents to my computer and have it start downloading, it would be very cool.

    I've made a web uploader with php to get the torrent file to my computer so far. But i'm trying to launch via System('open blahblah.torrent') and vuze doesn't launch. Actually, it crashes on startup. I know for a fact that it's a permission problem that the php script can't launch the local application vuze. I was wondering if someone knew of a secure quick fix to have the www apache user to have access to opening vuze.

    Any help would be greatly appreciated.

  2. angelwatt Moderator emeritus


    Aug 16, 2005
    I'm just thinking this off hand, but what about setting up a Folder Action for a specific folder on your machine so when a torrent shows up in the folder the torrent app automatically starts using it. I think some torrent software can monitor folders as well. I've never used vuze though so can't help that far.
  3. SrWebDeveloper macrumors 68000


    Dec 7, 2007
    Alexandria, VA, USA
    Try using the exec function in PHP instead of system. If that alone does not resolve your issue, I found some help in the comments section of for the exec function which might apply to your situation IF you run Windows:

  4. Abominable thread starter macrumors newbie

    Nov 29, 2006
    Automatically Import worked

    Thanks for the help guys. I set vuze to automatically download the torrents from the upload folder. Works great.

    Thanks again!

  5. shmootz macrumors newbie

    Mar 27, 2009

    Can you please tell me how to set vuze to automatically open .torrent files from a specified folder?

    Thanks :)
  6. Abominable thread starter macrumors newbie

    Nov 29, 2006
    hey shmooz,

    Go to the preferences. Then go Files --> Torrents and there is a checkbox that says "Import new .torrents automatically", just check it and choose the directory. Worked well for me.

    Hope that helps,

Share This Page