PEAR Packages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPEAR Packages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old August 17th, 2006, 03:35 PM
webrob webrob is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 webrob User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Help with XML_RSS package??

Hi all,

I have never used a PEAR package before, I installed the package from the command line and I followed this tutorial:

http://pear.php.net/manual/en/package.xml.xml-rss.example.php

But I am getting this error:

Warning: main(XML/RSS.php): failed to open stream: No such file or directory in /var/www/vhosts/piermarketing.com/httpdocs/includes/column-right.php on line 2

Fatal error: main(): Failed opening required 'XML/RSS.php' (include_path='.:') in /var/www/vhosts/piermarketing.com/httpdocs/includes/column-right.php on line 2

I am sure this is super easy and I am missing something. Any help is appriciated!

Reply With Quote
  #2  
Old August 18th, 2006, 07:03 AM
DMN DMN is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 12 DMN User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to DMN
RE: Help with XML_RSS package??

You need to set your include path to PEAR main directory.
Just write this code in beginning of your main file (by the example in index.php):
<code php>
// get include_path from config
$inidir = ini_get("include_path");
// define path separator (depends from OS)
if (!defined("PATH_SEPARATOR")) {
define("PATH_SEPARATOR", substr(php_uname(), 0, 3) == 'Win' ? ';' : ':');
}
// set new include_path
ini_set("include_path","Path to your PEAR directory". PATH_SEPARATOR . $inidir);
</code>

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPEAR Packages > Help with XML_RSS package??


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway