RE: [PHP] How to use file() function with an "HTTPS:\\www.example.com"

From: Date: Wed, 17 Sep 2003 19:06:46 +0000
Subject: RE: [PHP] How to use file() function with an "HTTPS:\\www.example.com"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-162910@lists.php.net to get a copy of this message
> How to use file() function with an "HTTPS:\\www.example.com" > > <?php > > $lines = file ('https://www.example.com/'); > > foreach ($lines as $line_num => $line) { > echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line) > . "<br>\n"; > } My interpretation of the manual page (http://us3.php.net/manual/en/function.file.php) is as follows: 1.) you need fopen_wrappers enabled 2.) https is only available in versions >= 4.3.0

« previous php.general (#162910) next »