SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: basic knowledge

  1. #1
    SitePoint Zealot
    Join Date
    Mar 2011
    0 Post(s)
    0 Thread(s)

    basic knowledge


    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
    Central Florida
    192 Post(s)
    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:
    <a img src="" />
    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)

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


Posting Permissions

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