Also, if the script is NOT written in PHP and you want to simply call it as a binary file, use the system() or exec() command to call it from a shell and to get its output.
Remember, if it's a perl program, you can pass in variables using this format:
system("voting.cgi name=value arg2=value arg3=value");
-sridhar