Hi all, new to php but trying. I have a simple script that accepts a value from url then runs a perl script with parameters. When I test the script buy typing the following into browser
http://www.myserver.com/zcode.php?zipc=23919, I get the error in subject line. I contacted tech people who host server and was told the script had to be rewritten so not to open connections. At a loss on this. Any help would be appreciated.
The perl script produces an xml file. Below is the code
[php]<?php
$zipc="-Z";
$lineup="-Y USA";
$fformat="-U";
$duration="-d 2";
$outfile="-o";
$ofile=“guide.xml”;
exec(“perl http://www.myserver.com/myperl.pl”, array($zipc, $_GET[‘zipc’], $lineup, $fformat, $duration, $outfile, “http://www.myserver.com/guide.xml”));
print"FINALLY GOT TO END";
?>[/php]