+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Mar 2012
    Posts
    4

    image permission

     
    Hi all
    I have downloaded core ftp lite. I want to include one .jpg image in my html file. What should I do to include it in my html program. I tried to following command -
    <p>
    <img src="http://.../...../ACSDP/king_logo.jpg" alt="UTPB Logo" width="100" height="50" align ="right"/>
    </p>
    and uploaded king_logo.jpg separately on ftp. I gave 755 permission to that image, but if I open that html program in browser, instead of image I get red x. why? I dont know where am I making a mistake? Does anyone know?
    Thanks in advance

  2. #2
    ph34r t3h g04t Whir's Avatar
    Join Date
    Oct 2001
    Location
    Kingsford, MI
    Posts
    29,254
    Blog Entries
    7
    What's with all the dots in the src? There shouldn't be a space between align and the = either, though I'm not sure that would cause the image to not load at all.

  3. #3
    Junior Member
    Join Date
    Mar 2012
    Posts
    4
    dots are url actually. I am using correct url in my program. I removed space too, but it is not uploading image yet. Do you have any idea? Why is is not showing an image?

  4. #4
    ph34r t3h g04t Whir's Avatar
    Join Date
    Oct 2001
    Location
    Kingsford, MI
    Posts
    29,254
    Blog Entries
    7
    Unless the URL you're using is wrong, nope. Have you tried using a static path instead of a URL?

  5. #5
    Junior Member
    Join Date
    Mar 2012
    Posts
    4
    no I havent tried using static path. How will I use it?
    Thanks

  6. #6
    ph34r t3h g04t Whir's Avatar
    Join Date
    Oct 2001
    Location
    Kingsford, MI
    Posts
    29,254
    Blog Entries
    7
    If, for instance, the image is in the same directory as the .html file, you would just do

    Code:
    <img src=image_name.jpg>
    If it's in a sub-directory, just add it to the path.

    Code:
    <img src=images/image_name.jpg>
    You can go back directories the same way.

    Code:
    <img src=../images/image_name.jpg>

  7. #7
    Junior Member
    Join Date
    Mar 2012
    Posts
    4
    Million thanks.... It worked....

  8. #8
    ph34r t3h g04t Whir's Avatar
    Join Date
    Oct 2001
    Location
    Kingsford, MI
    Posts
    29,254
    Blog Entries
    7
    Cool. Glad to help.

    Always do static paths when possible. It just makes life easier for everyone involved (server, client, etc).

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Drive Image 2002 & restoring image to a smaller partition
    By videobruce in forum Applications and Operating Systems
    Replies: 1
    Last Post: April 12th, 2005, 02:00 PM
  2. Halo2 Release date and first ever MP image...(huge image)
    By Master Chief in forum General Gaming Discussion
    Replies: 6
    Last Post: February 1st, 2004, 08:55 AM
  3. You do not have permission to view this image.
    By VERT in forum General Tech Discussion
    Replies: 8
    Last Post: February 14th, 2003, 05:07 PM

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews