file_get_contents in PHP to get a local asp file's render

Zueri

New Member
I have a running server in windows server 2003 hosting an ASP website. I have a PHP function trying to use \[code\]file_get_contents\[/code\] from an URL that belongs to that server. The problem is both ASP URL and PHP functions belong the same server. I will explain it better:My web www.myweb.com is hosted in my server.The file www.myweb.com/phpfile.php needs to get the contents from the file www.myweb.com/aspfile.asp with \[code\]file_get_contents\[/code\]. If I run \[code\]phpfile.php\[/code\] from an external server it works, but if I run it from my server it fails.I'm pretty sure the problem is that both files belong to same local host, so when I try to get \[code\]aspfile.asp\[/code\] content it skips the web server and doesn't get the rendered content. My question is: How can I solve it? How can I exactly tell the server to look for the rendered content instead looking in local host?
 
Top