farkewie Posted May 5, 2009 Share Posted May 5, 2009 Hi, I want to display some of the information of a page i have that can only be accessed through a port. To view the page i would browse to http"//IP:PORT there is not file extension. How can i do this? I have tried include and file_get_contents $page = file_get_contents("Http://IP:PORT"); print $page; Here is the error i get. Warning: file_get_contents(http://IP:PORT) [function.file-get-contents]: failed to open stream: HTTP request failed! in T:\WebRoot\index.php on line 31 Link to comment https://forums.phpfreaks.com/topic/156916-file_get_contents-getting-webpage-without-file-ext-indexhtm/ Share on other sites More sharing options...
suncore Posted May 5, 2009 Share Posted May 5, 2009 What you mean by "there's no extension" ? If there's no extension, it's not a file - if it's not a file, how can you say that you have a "page" ? Can you be more specific ? What you want to retrieve ? Link to comment https://forums.phpfreaks.com/topic/156916-file_get_contents-getting-webpage-without-file-ext-indexhtm/#findComment-826580 Share on other sites More sharing options...
farkewie Posted May 5, 2009 Author Share Posted May 5, 2009 I am trying to access free download managers web interface. I only want to display part of it on my page. When i say there is not ext is exactly that. You access it through "IP:PORT in the servers folder it has an index file i have tried using and browsing to IP:PORT/index.html. but page cant be displayed From what i can see FDM server reads the file in to memory and serves it as a stream. Link to comment https://forums.phpfreaks.com/topic/156916-file_get_contents-getting-webpage-without-file-ext-indexhtm/#findComment-826583 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.