note 48931 added to function.include
| From: | teoooo78 at virgilio dot it | Date: | Wed, 12 Jan 2005 10:03:06 +0000 |
| Subject: | note 48931 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-83129@lists.php.net to get a copy of this message | ||
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..........
----
Manual Page -- http://www.php.net/manual/en/function.include.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48931
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48931&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48931&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48931&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48931&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48931&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48931&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48931&report=yes
Search -- http://master.php.net/manage/user-notes.php