note 63662 deleted from ref.curl by bjori

From: Date: Mon, 27 Mar 2006 21:28:32 +0000
Subject: note 63662 deleted from ref.curl by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-106790@lists.php.net to get a copy of this message
Note Submitter: Reason: in docs ---- If you don't have libcurl support, use Streams: http://us2.php.net/manual/en/ref.stream.php <?php /* Read local file from /home/bar */ $localfile = file_get_contents("/home/bar/foo.txt"); /* Identical to above, explicitly naming FILE scheme */ $localfile = file_get_contents("file:///home/bar/foo.txt"); /* Read remote file from www.example.com using HTTP */ $httpfile = file_get_contents("http://www.example.com/foo.txt"); /* Read remote file from www.example.com using HTTPS */ $httpsfile = file_get_contents("https://www.example.com/foo.txt"); /* Read remote file from ftp.example.com using FTP */ $ftpfile = file_get_contents("ftp://user:pass@ftp.example.com/foo.txt"); /* Read remote file from ftp.example.com using FTPS */ $ftpsfile = file_get_contents("ftps://user:pass@ftp.example.com/foo.txt"); ?>

« previous php.notes (#106790) next »