Using Php Scripts

Come up with a useful post-processing script? Share it here!
Post Reply
skycryer
Newbie
Newbie
Posts: 5
Joined: June 22nd, 2010, 7:34 am

Using Php Scripts

Post by skycryer »

Is there a way to make a php Script for post processing and use it? If there is a way how? Just copy to Script folder? Can i use the parameters sabnzbd gives after download?
spadger
Newbie
Newbie
Posts: 7
Joined: June 17th, 2010, 3:19 pm

Re: Using Php Scripts

Post by spadger »

Well php does include a command line tool as well so you could use that in your script i suppose.
babiulep
Newbie
Newbie
Posts: 10
Joined: November 8th, 2008, 10:15 am

Re: Using Php Scripts

Post by babiulep »

.: Example :.
Create a file (myscript.php) with the following:

#!/usr/bin/php


Make sure /usr/bin/php is the right path to the php cli.
Save it and make this script executable.
And run it from the command line: i.e. ./myscript.php

Good luck :D
Post Reply