Can I include a script on another server doing this?
$sql = 'SELECT * FROM '.$table.' where number like '.$number.';';
http://foo.com?list.php?number=16
include("http://elsewhere.com/list.php");
My $sql is error-ing - obviously. http://elsewhere.com/list.php is not receiving $number. Can I even do this?
No, you cant.
Even if you could, if the server where the include file is located runs PHP, the include file would run there, and you would end up including the output of it instead of the code.
Why would you want to do that? Maybe what you really want to do dont need that...
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php