homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

calling cgi from php script

 4:45 am on Aug 18, 2002 (gmt 0)

Can you use fopen to open a URL pointing to a CGI script such that the cgi script is executed and you can still process the returned HTML normally? I guess the question is, does fopen execute the cgi script when it gets a pointer to the URL..




 6:43 am on Aug 19, 2002 (gmt 0)

I don't think the script is executed using fopen() but the answer will be here.

fopen [php.net]

You may have to use require or include. I think there is even an exec function, not sure.

Sorry scorpion, I feel badly when I keep referring to this site but it really is that good.


 2:00 pm on Aug 19, 2002 (gmt 0)

thanks, I have written some code where fopen points to a cgi script. It seems to work in that fopen contains the returned HTML document. I assume for this to happen, it HAD to run the script, otherwise it wouldn't have gotten the html page...

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved