Grow your CSS skills. Land your dream job.

All images in my index.php file will not show in browser

  • # March 21, 2009 at 9:52 pm

    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.

    # March 21, 2009 at 9:53 pm

    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"&gt;
    <html xmlns="http://www.w3.org/1999/xhtml"&gt;
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

    <link href="revised2.css" rel="stylesheet" type="text/css" />
    <?php
    require_once ‘FlickrScrollr.inc.php';
    $flickr = new
    FlickrScrollr(‘http://..com/services/feeds/photos_public.gne?id=26072511@N00&lang=en-us&format=rss_200′);
    ?>

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

    <div id="blog">
    <?php
    require_once ‘/homepages/37/d221555405/htdocs/carp/carp.php';
    CarpCacheShow(‘http://.com/blog/feed/’);
    ?>
    </div>

    # March 22, 2009 at 2:25 am

    Link?

    Check your paths to the images in revised2.css

    # March 22, 2009 at 9:43 pm

    Sorry guys! I got it. Small little element screwed things up. Thanks for the reply!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".