Reply to Re: parsing RSS feeds where allow_url_fopen=OFF on php 4.4.4??

Your name:

Reply:


Posted by Christoph Burschka on 11/18/06 17:49

Paul wrote:
> I need to get, parse and display RSS feeds while having the ini setting,
> allow_url_fopen = Off.
>
> I used to use (in version 4.1) domxml_open_mem() but it's not longer
> available in this verison for some reason - and cannot install pecl
> extensions.
>
> Any ideas? Any example scripts?
>
> Thanks!!
>
>

There are at least two ways to make an http connection in PHP without allow_url_fopen being enabled
(I've tried both of these; the second one seems to be slightly faster).


1. The cURL library: http://www.php.net/cURL
If your host has it installed. For example, Dreamhost has allow_url_fopen disabled and offers cURL
as a replacement.

2. The open-source Drupal CMS contains a very powerful HTTP function that has no other dependencies
within the Drupal code - meaning you can easily copy and re-use it elsewhere. You can see the
function here: http://api.drupal.org/api/HEAD/function/drupal_http_request . This function uses
fsockopen().

--
Christoph Burschka

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация