Re: Include de archivo remoto
| From: | Andres Ferrando | Date: | Fri, 22 Nov 2002 13:14:24 +0000 |
| Subject: | Re: Include de archivo remoto | ||
| References: | 1 2 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-29570@lists.php.net to get a copy of this message | ||
tenés activada esta opción en el php.ini?
configuration.html#ini.allow-url-fopen
Para mas info, mirá el manual en:
function.include.html
especialmente, la parte que dice:
If "URL fopen wrappers" are enabled in PHP (which they are in the
default configuration), you can specify the file to be included using an
URL (via HTTP) instead of a local pathname. 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.
> ¿COmo puedo hacer que un archivo de mi Intranet haga un include de un
> archivo que tengo en internet?
>
> Lo he provado con include
> ("http://www.midominio.com/archivo.php"); y no me
> deja
--
Andres Ferrando <anferr@mecon.gov.ar>