calling included remote functions

From: juglesh (juglesh_at_nospamRadioKDUG.com)
Date: 02/24/05


Date: Wed, 23 Feb 2005 21:16:48 -0800

at one centraldomain.com, I have central.php, which consists of this:
<?php
function square($num)
    { return $num * $num;
    }
?>

at outerdomain.com, I have test.php, which consists of this:
<?php
include "http://www.centraldomain.com/central.php";
echo square(4); // outputs '16'.
?>

outerdomain.com/test.php =
"Fatal error: Call to undefined function: square() in blah/blah/test.php on
line 12"

wha'appen'? I thought you could call included functions? Hmm... if I put
central.php on the outerdomain.com, it works. No calling functions from
files included remotely?

-- 
juglesh


Relevant Pages

  • calling included remote functions
    ... at one centraldomain.com, I have central.php, which consists of this: ... No calling functions from ...
    (comp.lang.php)
  • Re: Ajax + HTML Forms
    ... I split my html/php top page by content and put the sub-ports into ... Now my top PHP page consists now of 3 DIV's, ...
    (comp.lang.javascript)
  • check in which frame a page is loaded?
    ... I am using a web-interface wich is php based and the index.php consists of 2 ... Is there a php function that lets you check in which frame the page is ...
    (alt.php)
  • Re: [PHP] problem calling functions
    ... Robin Vickery wrote: ... I have a problem with calling functions: ... it will indeed execute solution1. ...
    (php.general)
  • Re: [PHP] problem calling functions
    ... Robin Vickery wrote: ... I have a problem with calling functions: ... it will indeed execute solution1. ...
    (php.general)