|
-
Mar 14th, 2006, 06:12 PM
#1
Thread Starter
Frenzied Member
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?
-
Mar 14th, 2006, 06:17 PM
#2
<?="Moderator"?>
Re: image not displaying
has the image been uploaded to the right location on your host?
-
Mar 14th, 2006, 06:57 PM
#3
Re: image not displaying
That code is horrific. You are missing <body> tags for a start
-
Mar 14th, 2006, 07:18 PM
#4
Thread Starter
Frenzied Member
Re: image not displaying
 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
-
Mar 15th, 2006, 05:40 PM
#5
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)??
-
Mar 17th, 2006, 04:18 PM
#6
Thread Starter
Frenzied Member
Re: image not displaying
Is there a red cross where the image should be displayed?
yep!
and the filename is fine
-
Mar 17th, 2006, 08:49 PM
#7
Fanatic Member
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
-
Mar 17th, 2006, 08:52 PM
#8
Fanatic Member
Re: image not displaying
i just don't understand why PHP is not displaying my images when everything is fine
somebody pls help
-
Mar 17th, 2006, 10:02 PM
#9
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.
-
Mar 17th, 2006, 10:12 PM
#10
Fanatic Member
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
-
Mar 17th, 2006, 10:19 PM
#11
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.
-
Mar 17th, 2006, 10:21 PM
#12
Fanatic Member
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
-
Mar 17th, 2006, 10:35 PM
#13
Fanatic Member
Re: image not displaying
done with the internal server error thing. but after setting permissions to 755 i still get the same error.
-
Mar 17th, 2006, 10:43 PM
#14
Fanatic Member
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.
-
Mar 18th, 2006, 07:04 PM
#15
Fanatic Member
Re: image not displaying
got it, after doin the chmod thing again it's now workin.
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|