JavaScript Editor Ajax software     Free javascripts 



Main Page

Reading Feeds using SimplePie
1.
To function properly, SimplePie needs a few libraries, as shown in Figure 7-4. If you’ve pre-
pared Apache and PHP as instructed in Chapter 1, you should have all the necessary libraries
installed and enabled, except cURL. To enable cURL, open the
php.ini
configuration file
(located by default in
\xampp\apache\bin
), uncomment the following line by removing
the leading semicolon, and then restart Apache:
extension=php_curl.dll
2.
Download the SimplePie package from
http://simplepie.org/downloads/
.
3.
Unzip the downloaded file, which should be called something like
simplepie_
ver
.zip
, some-
where on your disk. Then copy
simplepie.inc
, which is the PHP file you’re interested in, to
your
seophp/include
folder.
4.
SimplePie is very developer friendly. Apart from the excellent documentation, SimplePie also
ships with a script that tests if your PHP installation supports SimplePie. If you are not sure if
your machine supports SimplePie, copy
sp_compatiliby_test.php
from the downloaded
package to your
seophp
folder. Then, loading
sp_compatibility_test.php
in your web
browser would provide a useful assessment — see Figure 7-4.
5.
Create a folder named
cache
under your
seophp
folder. The
seophp/cache
folder will be used
by SimplePie for caching purposes.
Figure 7-4
161
Chapter 7: Web Feeds and Social Bookmarking
c07.qxd:c07 10:42 161


JavaScript Editor Ajax software     Free javascripts