You are here: Re: Cannot instantiate non-existent class « PHP Programming Language « IT news, forums, messages
Re: Cannot instantiate non-existent class

Posted by Berimor on 11/06/05 12:21

On Sun, 06 Nov 2005 10:59:56 +0100, Didier Willame
<didier.willame@ieee.org> wrote:

> Hello,
>
> I would like to use the 'foo' class stored in
> http://www.argonauts-it.be/foo.php .
>
> This the code ( http://www.argonauts-it.be/test.php ) :
>
> <?php
> ignore_user_abort( true );
>
> ini_set('error_reporting', E_ALL);
> ini_set('display_errors', TRUE);
>
> ini_set( 'allow_url_fopen', true );
>
> include_once 'http://www.argonauts-it.be/foo.php';
>
> $c = new foo();
> ?>
>
> And this is the raised error:
>
> Fatal error: Cannot instantiate non-existent class: foo
> in /<blabla>/test.php on line 96]


If the target server interprets the target file as PHP code, variables may
be passed to the included file using an URL request string as used with
HTTP GET. This is not strictly speaking the same thing as including the
file and having it inherit the parent file's variable scope; the script is
actually being run on the remote server and the result is then being
included into the local script.


>
>
> I would like to use the include via the URL, to be able to share the same
> code within different domain names.
>
> All information allow me to continue is welcome.
>
> Thanks.
>
> Have a nice day,
> /didier



--
Exact Meta Search | Major Search Engine
http://exactsearcher.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация