FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

CGI from PHP

 


barrie
how can you run a cgi script from within a php script? i know how to do it in .shtml but i don't know if it's the same. And is it possible that the cgi script generates php code which is then parsed?
mattd8752
don't you run the php within the cgi, I don't think php could handle the cgi unless you made it run over sockets.
Grimboy
Yes, simply use CURL (http://uk.php.net/manual/en/ref.curl.php) to get it and it will be parsed by the CGI language you use. Then parse the xml (if it is xml) it returns it with http://uk.php.net/manual/en/ref.xml.php. Easy, if you don't have curl for some reason then you can achive the same effect with sockets.
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.