I am implementing a php site that allows users to upload their pictures, I created the uploads directory at the same level as root but now how can I access those images in html.
I tried following
That is, whatever you put in the "src" part of the HTML tag is requested by the browser. If you put ../../uploads/abc in the src field your browser will request the page ehtisham9.me/diary/../../uploads/abc for the image, and the server should put it there.
../../uploads/abcin thesrcfield your browser will request the pageehtisham9.me/diary/../../uploads/abcfor the image, and the server should put it there.