SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: basic knowledge

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Mar 2011
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    basic knowledge

    hi,

    If i save a image path in a database and retrieve the path for the file via php the image would be saved on the servers hdd??

    Is this the case? Is this how all websites work usually


    any assistance in understanding this scenario better would be really great!!

  2. #2
    Avid Logophile silver trophy
    ParkinT's Avatar
    Join Date
    May 2006
    Location
    Central Florida
    Posts
    2,285
    Mentioned
    181 Post(s)
    Tagged
    4 Thread(s)
    A 'path' is exactly that; think of it as an address which POINTS TO the location that element resides.
    This can be on the server Hard Drive, or on *another* server, or a 'cloud' service. In other words there is no direct answer to your question.

    Here's a simple example. I have attached an image to this post. It resides on the Sitepoint server(s).
    The link is shown (below), which is the "address" to the image. That link is no different if the image was on any other server on the Internet.
    Furthermore, I can embed the image in this post (via HTML) by simply *referencing* that link like this:
    Code:
    <a img src="http://www.sitepoint.com/forums/attachment.php?attachmentid=57474&d=1315918284" />
    I hope this is helpful.
    Attached Images Attached Images
    Don't be yourself. Be someone a little nicer. -Mignon McLaughlin, journalist and author (1913-1983)


    Literally, the best app for readers.
    Make Your P@ssw0rd Secure
    Leveraging SubDomains


Bookmarks

Posting Permissions

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