Results 1 to 15 of 15

Thread: image not displaying

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,364

    image not displaying

    <html>
    <h1>Test message</h1>
    <IMG SRC="hello.JPG">
    </html>

    it works when i put it in my www folder, but when i upload it to a host i use in the www folder in cPanel

    it doesnt display the image

    any ideas whats wrong?

  2. #2
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: image not displaying

    has the image been uploaded to the right location on your host?

  3. #3
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: image not displaying

    That code is horrific. You are missing <body> tags for a start

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,364

    Re: image not displaying

    Quote Originally Posted by john tindell
    has the image been uploaded to the right location on your host?
    yep

    it just displays the text tho only

  5. #5
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: image not displaying

    Is there a red cross where the image should be displayed?

    Also, check that the file you've uploaded is called "hello.JPG" and not "hello.jpg". (case sensative)??

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,364

    Re: image not displaying

    Is there a red cross where the image should be displayed?

    yep!

    and the filename is fine

  7. #7
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: image not displaying

    i am presently having the same problem on this new site i'm working on, the image display was fine on my HD but does not display on the web.

    somebody pls help

    the url is http://tp2.crownbrothers.com

    thanks
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  8. #8
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: image not displaying

    i just don't understand why PHP is not displaying my images when everything is fine
    somebody pls help
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  9. #9
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: image not displaying

    OK, modpluz's site I can help with. It's really very simple. Just append the relative URL of the image on to the site index URL. Since that's exactly what the browser itself is doing, you can "debug" it that way.

    e.g.
    http://tp2.crownbrothers.com/images/mnu_top_bar_10.gif

    In your case you get a 403:Forbidden error when you try to access any images. This means you need to apply group/public READ permissions to the "images" folder and all images within it. Your FTP client should do this by default but if not you may have a setting to fix it.

    In this case it's nothing to do with PHP or HTML, it's merely the way your server OS (*nix most probably) works.

    This goes for Pouncer also. Check permissions, relative paths, case sensitivity, all that.

  10. #10
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: image not displaying

    In your case you get a 403:Forbidden error when you try to access any images. This means you need to apply group/public READ permissions to the "images" folder and all images within it. Your FTP client should do this by default but if not you may have a setting to fix it.
    i'm using cpanel how do i set group/public READ permissions
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  11. #11
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: image not displaying

    Click on a file/folder name (not the icon). In the right frame click "Change Permissions". Group and "World" (otherwise known as Public) should have Read and Execute permissions, but not Write. User should have all three. You should end up with 755, this is an octal number combining all permissions. Repeat process for all files/folders that should be publicly accessible.

    If you have FTP access, use a graphical FTP client instead of cPanel, it's faster for this sort of thing as it should allow you to select multiple files and apply all at once.

  12. #12
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: image not displaying

    i did chmod the directory to 777 using a web based FTP(net2ftp), after that i try accessing the site and i get Error 500 > Internal Server Error
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  13. #13
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: image not displaying

    done with the internal server error thing. but after setting permissions to 755 i still get the same error.
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  14. #14
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: image not displaying

    no i can't use an FTP software because i'm on LAN and my ISP seems to be denying me the usage of an FTP software.i tried SmartFTP but it does logout immediately after login in.so i can't use an FTP software.
    Last edited by modpluz; Mar 18th, 2006 at 07:02 PM.
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  15. #15
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: image not displaying

    got it, after doin the chmod thing again it's now workin.
    thanks
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width