FRIHOSTFORUMSSEARCHFAQTOSBLOGSCOMPETITIONS
You are invited to Log in or Register a free 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.
Related topics
html?
The best site for learning JavaScript
SDRAM vs DDRAM
Anyone got a site???
*[PRZECZYTAJ NAJPIERW]* Czesto Zadawane Pytania, FAQ, TOS.
Form To Mail Script
Hi
mobile java games
looking for password gate script
Yararlư Siteler
FriHost 1 year Birthday Guess
to make web site
Why are you using FRIhost
Why do some of you use this hosting?
Communicating between web pages
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

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