Launching vuze via PHP/apache

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

  1. Abominable macrumors newbie

    Joined:
    Nov 29, 2006
    #1
    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 vuze.app 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.

    -Greg
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    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

    SrWebDeveloper

    Joined:
    Dec 7, 2007
    Location:
    Alexandria, VA, USA
    #3
    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 php.net for the exec function which might apply to your situation IF you run Windows:

     
  4. Abominable thread starter macrumors newbie

    Joined:
    Nov 29, 2006
    #4
    Automatically Import worked

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

    Thanks again!

    Greg
     
  5. shmootz macrumors newbie

    Joined:
    Mar 27, 2009
    #5
    Hi,

    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

    Joined:
    Nov 29, 2006
    #6
    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,
    Greg
     

Share This Page