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

 [EMAIL PROTECTED]


""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message 
98lcdl$89d$[EMAIL PROTECTED]">news:98lcdl$89d$[EMAIL PROTECTED]...
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: [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]

Reply via email to