grazzman Posted July 24, 2006 Share Posted July 24, 2006 Hey,I need to grab the results of a CGI script and dump it into a variable without HTML in the results. I'm looking to do kind of what lynxs would do with the following....lynx -dump -auth=user:pass https://somedomain.com/account.cgi?account=account123 I need to do this but without using lynx.... If anyone can just point me in the right direction, I should be able to google the rest... If I can get the page into a variable, then I can pars the information that I need out of the results. I'm not sure if fopen or if any of the f commands will do this. If anyone has any ideas, please let me know.Thanks Quote Link to comment https://forums.phpfreaks.com/topic/15502-question-about-dumping-results/ Share on other sites More sharing options...
gluck Posted July 24, 2006 Share Posted July 24, 2006 Use the CURL, Client URL Library Functions to achieve your objective. Quote Link to comment https://forums.phpfreaks.com/topic/15502-question-about-dumping-results/#findComment-63044 Share on other sites More sharing options...
ryanlwh Posted July 24, 2006 Share Posted July 24, 2006 fopen and such can open a url if allow_url_fopen is true. if you need to post data to the remote url, use the CURL library as suggested by gluck Quote Link to comment https://forums.phpfreaks.com/topic/15502-question-about-dumping-results/#findComment-63061 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.