[PHP] remotly include file

2001-05-08 Thread Dominic Brander

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?

thanx

domnic

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] remotly include file

2001-05-08 Thread Wico de Leeuw

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




AW: [PHP] remotly include file

2001-05-08 Thread Sebastian Stadtlich

 
 include(http://www.somehost.ext/path/to/include/include.php;);

i don't think that is a goob idea...
if it works ( what i'm not sure ) you would get the complete output of
the file,
BUT in that remote file you would miss the parameters,etc from the
calling script.
is it is on the same server ( hardwarelike ) then u can use the complete
path to include it
eg : include('/home/www/blah/yourfile.php')

ym2c
sebastian

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: AW: [PHP] remotly include file

2001-05-08 Thread Dominic Brander

exactly! this way (http...) it does not work!
I tried it a few times!
it is on the same server. so i did it with the /home/.. -path. but this
also does not work properly.
i think the proplem is, that within the included file there are other
files included (and so on...).
Error Message:
Warning: Failed opening 'inc/var_general.inc.php3' for inclusion
(include_path='') in /opt/...

May you know a solution?

thanx

dominic

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




AW: AW: [PHP] remotly include file

2001-05-08 Thread Sebastian Stadtlich

 i think the proplem is, that within the included file there are other
 files included (and so on...).
 Error Message:
 Warning: Failed opening 'inc/var_general.inc.php3' for inclusion
 (include_path='') in /opt/...

i think you gave the answer yourself.
you need to use the full path to the includes in that includefile
also...
it probably be easiest to handle if in the file to be included you use
include($custom_root.'/includefile.php')

the variable customroot should be empty on normal inclusion, but on the
different dir
u use

$custom_root='/home/www/blah/blub/whatever';
include($custom_root.'/includefile.php');

anyhow: you need to rewrite the files that need to be included 
:-[

 
 May you know a solution?
 
 thanx
 
 dominic
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: 
 [EMAIL PROTECTED]
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]