solaris perl using php to output to html with variables
Posted on 2011-09-06
I am using perl to execute a php script to convert to html. I have no problem in converting php to html when there are no variables used in the php statement, but when I attempt to add a variable to the php file, I get an error.
Below is the perl code snippet:
system(`cd /var/opt/webstack/apache2/2.2/htdocs/customers/; \
/opt/webstack/php/5.2/bin/php $myurl >/tmp/mytest.html`);
on executing the code, I get the following error:
Could no open input file: build_report.php?customer=ACME
I have tried using quotes around 'ACME', but same results. When I do the same script with a php file that does not require the variable "customer", everything works as planned.
Any ideas on how to pass a php variable to the php script from within perl?