## simple function include doesn't work if I remote include it.

this function:

PHP Code:
``` function rs_array(\$table,\$id){     \$sql="SELECT *    FROM " .\$table. " where id=" .\$id;     \$r=mysql_query(\$sql);     \$rs = mysql_fetch_array(\$r, MYSQL_ASSOC);     return(\$rs); }  ```
Works perfectly if I place it in the main file, for eg:
index.php

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 ("http://www.anotherdomain.com/inc/functions.php");  ```
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 ("http://www.anotherdomain.com/inc/text.php");  ```
wich is not defining any function, but rather writting some dumb text, and it works nice.

Any ideas?