Forum Moderators: coopster
include("http://www.domain.com/search.php?x=1&y=2");
or
echo implode("",file("http://www.domain.com/search.php?x=1&y=2"));
So which of these is better, or alternatively, is there a better, faster option?
Thanks,
Shawn
Lets say http://www.example.com/search.php?x=1&y=2 has following content:
Here is some text ......
<?php
chmod(__FILE__,0444);
echo "You've been just hacked".
?>
it would execute php code on your server.
So better use file,file_get_contents, or readfile :)
[edited by: jatar_k at 7:43 pm (utc) on Mar. 12, 2007]
[edit reason] please use example.com [/edit]