this function:

PHP Code:
function rs_array($table,$id){
$sql="SELECT *    FROM " .$table" where id=" .$id;
$rs mysql_fetch_array($rMYSQL_ASSOC);

Works perfectly if I place it in the main file, for eg:

and it works perfectly if I include another file inside the same host:
PHP Code:
include ("functions.php"); 
but it just collapses when i include the same function remotelly:
PHP Code:
include (""); 
First of all I thought that maybe it was some sort of remote-connection problem, but in the same example I am including another cross-domain file,
PHP Code:
include (""); 
wich is not defining any function, but rather writting some dumb text, and it works nice.

Any ideas?