Forum Moderators: coopster
Someone asked me to include one of their php files in my code that is hosted on their server. I have done this like so:
include("http://www.somesite.com/level2/includes.php");
$info = return_user_info($_COOKIE["provident_email"]);
echo $info['Last Name'];
But i get this error: Fatal error: Call to undefined function return_user_info()
Is this even possible? Or do i need to store that include.php file locally?
Thanks
[edited by: dreamcatcher at 6:38 pm (utc) on Aug. 3, 2006]
[edit reason]
[1][edit reason] Generalized url. See TOS [webmasterworld.com] [/edit] [/edit][/1]
Personally, I would get a copy and move it to your local server. Are there was to get the page in it's raw state? Probably, but do you really want to be doing that? You are basically asking that page to run whatever it would like on your server at that point. Not saying your friend might get malicious, but what if his server was compromised? Now you are too.
Like I said though, this is an extremely insecure practice and I do not recommend it by any means.