PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a cgi script that I want to run inside a php page. But I do not want to have to use a post form. I just want to do like an include type of thing and let the cgi script do its thing and then print back that information onto the php page.
Any idea how this can be done. I have been searching but no luck.
This isn't really a PHP thing, but what you need is a SSI (Server Side Include) to call the script. Insert this line (with the value changed to whatever is correct) into the page where you want it to call the script. Don't put it into your PHP (it's not), just among the normal (X)HTML.
But what if i have the cgi on another server. I have a secure server and a non secure server. I want to be able to pass certain information over to it and then back. Right now with just the cgi it works. Just can not figure out how to do it with a php front.