From: C y b e r T e c h @ L i s t s . E x M a c h i n a . n e t
<http://www.cybercafe21.net> & <http://www.cybercafe21.tv>
> Pas vraiment d'autre choix à ma connaissance... ou alors sur ton IIS tu
> dois développer (en ASP ou en PHP ça doit être faisable) un moteur qui
> va se charger en temps réel de charger sur l'IIS les pages situées en
> remote et les proposer au visiteur du site sur l'IIS comme si elles
> étaient locales...
> malheureusement, cela signifie aussi que tu vas prendre 2x la bande
> passante de l'IIS !
Pas difficile de le faire en PHP... Ca doit etre possible en ASP je suppose,
mais mon ASP commence un peu a prende de l'age... :o)
Donc, voici une toute simple implementation en php3:
-- getfile.php3 --
<?php
/*
* getfile.php3
* Grabs a page from another http or ftp server and displays it.
* Note: Works only if "URL fopen wrapper" is turned on (which is the
* case by default). This script works under both UNIX and Windows.
*
* By: Cedric Roijakkers <[EMAIL PROTECTED]>
* Version: 0.1
* This script is free to distribute and use, as long as this copyright
* notice is supplied as part of the script.
*
* Call as: getfile.php3?http://www.otherserver.com/path/to/file.html
* If necessary, give a username and password to login to the server:
* getfile.php3?ftp://user:[EMAIL PROTECTED]/path/to/file.html
*/
// First check if a URL is supplied
if ($argc == 0)
{
echo "Page to grab not supplied...\n";
}
else
{
// Open the remote file in a file pointer
$page = fopen($argv[0], "r");
if (!$page)
{
echo "Error grabbing file...\n";
}
else
{
// Read all the lines and print them out
while (!feof($page))
{
$line = fgets($page, 1024);
echo $line;
}
// Close the file pointer
fclose($page);
}
}
?>
-- getfile.php3 --
A+
Cedric
Des Cadeaux, des avantages et des offres qui vous interessent ?
http://www.justforyou.be... what you want is what you get !
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CCTK vous est offert par Ex Machina <http://www.exmachina.net>
Pour vous desabonner <mailto:[EMAIL PROTECTED]>