I have a php script that needs to assign a variable from a remote perl script.
I tried this:
$a = include('http://www.remotedomain.com/cgi-bin/inventory_check.pl');
but it only gave me a value of true (1)
The perl script outputs only a simple integer - no HTML or anything else.
This seems like such a simple thing to do and I have a feeling I'm gonna feel pretty dumb when I find the answer but I haven't been able to figure it out thus far.
Thanks in advance!