this function:
Works perfectly if I place it in the main file, for eg: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);
}
index.php
and it works perfectly if I include another file inside the same host:
but it just collapses when i include the same function remotelly:PHP Code:include ("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/functions.php");
wich is not defining any function, but rather writting some dumb text, and it works nice.PHP Code:include ("http://www.anotherdomain.com/inc/text.php");
Any ideas?



Reply With Quote





Bookmarks