kevinkorb Posted February 10, 2007 Share Posted February 10, 2007 Basically I have this code $myFile = $_GET['file']; include("/www/mySite.com/include_$myFile"); How would I access a file http://www.different_server.com/inject.txt into here? Is this possible? Thanks. Quote Link to comment Share on other sites More sharing options...
hvle Posted February 10, 2007 Share Posted February 10, 2007 Chances are you will get parsing error because you're trying to include a html file over http. unless that file is a valid PHP script. Quote Link to comment Share on other sites More sharing options...
kevinkorb Posted February 10, 2007 Author Share Posted February 10, 2007 Chances are you will get parsing error because you're trying to include a html file over http. unless that file is a valid PHP script. Actually in PHP 4.3+ you can include http requests in includes unless allow_url_fopen is set to On. Quote Link to comment 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.