note 58700 added to features.remote-files
| From: | eddiec at stararcher dot com | Date: | Sat, 12 Nov 2005 19:28:18 +0000 |
| Subject: | note 58700 added to features.remote-files | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-98486@lists.php.net to get a copy of this message | ||
Even if allow_url_fopen is disabled, you can achieve the same effect by using CURL:
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.example.com/rss.xml");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
$data = explode(chr(10), $response);
?>
This leaves the array, [b]$data[/b], filled with the lines of the file found at the URL.
----
Manual Page -- http://www.php.net/manual/en/features.remote-files.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58700
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58700&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58700&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58700&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58700&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58700&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58700&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58700&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58700&report=yes
Search -- http://master.php.net/manage/user-notes.php