Re: remotely include file

From: Date: Tue, 08 May 2001 14:41:34 +0000
Subject: Re: remotely include file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-51900@lists.php.net to get a copy of this message
Hi, I think the webserver on the remote machine parses the PHP-file. You can see this happen if you type in the url youre trying to include in your browser. No php code there, just html I dont think what youre trying to do is possible. If it were youd have one hell of a security hole on your webserver :) bye Wieger Robert Covell wrote: > > I tried the exact same thing. I have a whole slew of the classes that have > been developed and wanted to centrally locate them on one server. But every > time I included the class, it said cannot instantiate non-existent class > "Blah Blah Blah". But when I copied over the file, it worked like a charm. > Any ideas why this would occur? > > Sincerely, > > Robert T. Covell > President / Owner > Rolet Internet Services, LLC > Web: www.rolet.com > Email: rcovell@rolet.com > Phone: 816.210.7145 > Fax: 816.753.1952 > > -----Original Message----- > From: Wico de Leeuw [mailto:wico@cnh.nl] > Sent: Tuesday, May 08, 2001 9:30 AM > To: dbrander@snowflake.ch; php-general@lists.php.net > Subject: Re: [PHP] remotly include file > > At 15:40 8-5-2001 +0200, Dominic Brander wrote: > >Hi > >I'm trying to include some php3 files via http. > >one part of the php files is on a regular server and the other part is > >on an secure server. > >Instead of duplicating all the files for both servers I would like to > >include them via http. > >How does it work? > > Like : > > > include("http://www.somehost.ext/path/to/include/include.php"); > > :) > > Greetz, > > Wico > > >thanx > > > >domnic > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > >For additional commands, e-mail: php-general-help@lists.php.net > >To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Wieger Uffink tel: +31 20 428 6868 fax: +31 20 470 6905 web: http://www.usmedia.nl

« previous php.general (#51900) next »