Problema con include con parámetros
| From: | Marcelo Peñailillo Streb | Date: | Fri, 09 Jan 2004 22:05:14 +0000 |
| Subject: | Problema con include con parámetros | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-44298@lists.php.net to get a copy of this message | ||
Listeros...
Si tengo dos archivos:
testprm.php
-------
<?php
$prm = $_REQUEST['param'];
echo ($prm);
?>
test.php
-------
<?php
include 'http://www.mifutbolito.com/testprm.php?param=OK';
?>
al ejecutar del navegador htt://misitio/test.php, aparece el error:
Warning: main(http://www.mifutbolito.com/testprm.php?param=OK): failed to open stream: HTTP request
failed! HTTP/1.1 403 Forbidden in /var/www/html/test.php on line 2
Warning: main(): Failed opening 'http://www.mifutbolito.com/testprm.php?param=OK'
for inclusion (include_path='.:/php/includes:/usr/share/php') in /var/www/html/test.php on
line 2
¿Alguien me puede ayudar con el porque y cómo se puede solucionar?
Muchas Gracias
Marcelo Peñailillo