note 48931 rejected from function.include by nlopess
| From: | nlopess@php.net | Date: | Wed, 12 Jan 2005 14:30:49 +0000 |
| Subject: | note 48931 rejected from function.include by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-83150@lists.php.net to get a copy of this message | ||
Note Submitter: teoooo78 at virgilio dot it
----
I see that i can't include a class from a remote server
ex:
[SERVER 1]
"file:call_class.php"
<?php
require "http://www.server2.com/class.php";
$t1= new Test();
?>
[SERVER 2]
"file:class.php"
<?php
class Test
{
function Test()
{
echo "test ok";
}
}
?>
the response is:
Fatal error: Cannot instantiate non-existent class
It's a syntax error?or..........