OK ok.....
I seem to be having array problems here.
exec("/usr/home/scentral/cgi-bin/swing/zip/zipmath.cgi RAD $ownzip $zipradius", $all);
echo $all;
returns the output of: Array
Here is my code...lines numbered... with passthru to show output.
variables for test are: $ownzip = 44121, $zipradius = 3
1: passthru("/pathto/zipmath.cgi RAD $ownzip $zipradius", $all);
2:
3: $all[$#all + 1] = $ownzip;
4: $join = join ("" , @all);
5: shift(@all);
OUTPUT:
The following zipcodes are within 3.00 miles of zipcode 44121 (Cleveland): 44112 (Cleveland-OH) distance 2.214869 miles 44118 (Cleveland-OH) distance 2.145109 miles
Warning: Variable $all is not an array or string in on line 3
Warning: Bad arguments to join() on line 4
Parse error: parse error on line 4
END OUTPUT
Am I referencing the array incorrectly? I have tried explode() to break the array into individual elements also with no luck either.
Is the output not being recognized as an array??
Any ideas would be greatly appreciated
Kev