Page 1 of 1

Using Php Scripts

Posted: June 28th, 2010, 5:20 am
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?

Re: Using Php Scripts

Posted: June 28th, 2010, 9:33 am
by spadger
Well php does include a command line tool as well so you could use that in your script i suppose.

Re: Using Php Scripts

Posted: June 29th, 2010, 1:37 pm
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