|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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! |
|
#2
|
|||
|
|||
|
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> |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PEAR Packages > Help with XML_RSS package?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|