homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Using php to display rss feeds has caused my images to not display.
Text is there along with the feeds, but images do not display.

5+ Year Member

Msg#: 3876160 posted 12:26 am on Mar 22, 2009 (gmt 0)

Hello all,
I am going to try and explain what I have been working on this past week:
I am using php and a -RSS to HTML- converter(Carp) to display rss feeds in two areas of my index.php page.
In one css div I am using a php script to pull in and display my Flickr Images Feed.

In another css div I am using Carp to display my rss feed of my blog.

I had to go back and forth trying a bunch of different things to get these to work. My server is running php4 so I had to add a new .htaccess file to make it use php5(since the php script I am using involves simplexml(which apparently does not work with php4))

I also had to go from using index.html to using index.php extension.

I did have to add an additional php.ini file in order to add the
allow_url_fopen ON in PHP configuration

So now I am stuck. The feeds are there and displaying great, but all my images for the site which is linked to a css file are not showing up when I view the site live. THe text is there, but no graphics! If I preview my index.php file through dreamweaver, they show up in both firefox and IE7. So basically I'm just wondering if this has to do with something in the many different php files that are being used.
Anyone have any ideas? Before I began displaying these feeds, all the graphics were showing up fine. I might have to post this in the css forum or browser forum instead, if you think that this doesn't have to do with the php.



5+ Year Member

Msg#: 3876160 posted 1:08 am on Mar 22, 2009 (gmt 0)

Here is what I am using to get server to use php5
in one of my .htaccess files:
AddType x-mapp-php5 .php
AddType x-mapp-php4 .html .htm

Here is what my php.ini is set to:
upload_max_filesize = 20M;
browscap = /usr/local/lib/browscap.ini;
error_reporting = (E_ALL & ~E_NOTICE & ~E_WARNING);
url_rewriter.tags = "a=href,area=href,frame=src,form=fakeentry,fieldset=";
register_globals = off;
allow_url_fopen = on;
max_execution_time = 50000;
safe_mode = off;
file_uploads = on;
magic_quotes_gpc = on;
memory_limit = 41943040;
short_open_tag = on;
post_max_size = 26214400;

Here is some of my index.php file(edited)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<link href="revised2.css" rel="stylesheet" type="text/css" />
require_once 'FlickrScrollr.inc.php';
$flickr = new

<div id="api"><?php echo $flickr ?></div>

<div id="blog">
require_once '/homepages/37/d221555405/htdocs/carp/carp.php';

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved