However, I need the path to the PHP script ('/stuff/phpEmailer/index.php') to be passed as a variable for the qp2shell parameter since this can change. This is where I'm having problems. If I declare a variable and assign the same path to it the call doesn't work. I get the following error when the CL program is run:
PASE for i program not found or in use. Path name is
Error loading PASE for i program '/usr/local/zendsvr6/bin/php-cli'
Can someone please help me? I can't understand why it works when the path is explicitly defined as opposed to when its passed as a variable.