<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 :confused:
any ideas whats wrong?
Printable View
<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 :confused:
any ideas whats wrong?
has the image been uploaded to the right location on your host?
That code is horrific. You are missing <body> tags for a start :p
yepQuote:
Originally Posted by john tindell
it just displays the text tho only
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)??
Is there a red cross where the image should be displayed?
yep!
and the filename is fine :confused:
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
i just don't understand why PHP is not displaying my images when everything is fine
somebody pls help
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.
i'm using cpanel how do i set group/public READ permissionsQuote:
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.
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.
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
done with the internal server error thing. but after setting permissions to 755 i still get the same error.
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.
got it, after doin the chmod thing again it's now workin.
thanks