We help IT Professionals succeed at work.
Get Started

Zend Class not found, PHP Error

Last Modified: 2013-12-13
I'm trying to run an RSS zend class, but it says the class is not found.

My server is Ubuntu 9.10 x64 , I had the same php file on my another server almost identical and I don't get this error, I can't figure out how to enable these zend classes....

Here's the error I get:

Fatal error: Class 'Zend_Feed_Rss' not found in /var/www/www.hollywoodcelebrityfashions.com/httpdocs/testblog.php on line 1

All I'm trying to us is load the following code..

<?php $channel = new Zend_Feed_Rss('http://www.hollywoodcelebrityfashions.com/blog/?feed=rss2'); ?>
<div class="blog">
<div class="blog-head">
<h4><span><?php echo $this->__('What\'s new...') ?></h4>
<div class="blog-content">
<ol id="graybox-latest-news">
$i = 0;
foreach($channel as $item) : 
<li><a href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a><p><?php $newdate = $item -> pubDate(); $newdate = date("D, d M Y"); echo $newdate; ?></p></li>
if($i == 5)
endforeach; ?>

Open in new window

Watch Question
This problem has been solved!
Unlock 2 Answers and 11 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE