All images in my index.php file will not show in browser
# March 21, 2009 at 9:52 pm
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.# March 21, 2009 at 9:53 pm
This reply has been reported for inappropriate content.
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 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="revised2.css" rel="stylesheet" type="text/css" />
$flickr = new
<div id="api"><?php echo $flickr ?></div>
You must be logged in to reply to this topic.