Re: include() from one server to another server
| From: | Chris Lee | Date: | Tue, 13 Mar 2001 13:35:11 +0000 |
| Subject: | Re: include() from one server to another server | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-43668@lists.php.net to get a copy of this message | ||
include_once can handel http connection if
--disable-url-fopen-wrapper
is not compiled intophp or
allow_url_fopen = off
in php.ini
then you can use http, not https though, secure connections are not supported. also not that when
using include() this way that the script is accually executed on the other side, not accually
included. ie.
include_file.php
<?php
echo "hello";
$test = 'chris lee';
?>
index.php
<?php
include_once(http://$SERVER_NAME/include_file.php);
?>
this will echo
hello
and $test will not be avalible to index.php
include() work very differnert depending on how it is used.
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
lee@mediawaveonline.com
""Scott Fletcher"" <scott@abcoa.com> wrote in message news:98lcdl$89d$1@toye.p.sourceforge.net...
Hi!
I tried to use the php code, "include()" to have the ghost server to point
to the file in the origial server. And I got the error message instead.
>Warning: Failed opening 'https://www.whatever.com/DBconn.ini' for
inclusion
>(include_path='.:/usr/local/lib/php.ini') in
>/home/website/ghost_ecbi/secure/ecbi_index.php on line 15
The URL address point to the original server. The
include_path="/usr/local/lib/php.ini" refer to the path in the ghost server.
From the look of it, I get the impression that the PHP code, include() is
not the correct function to use. Is there any other way?
Thanks,
Scott
--
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