i have users upload pictures to my website. These script is inside my public_html directory but the photos are loaded to a directory on the same level as public_html
meaning:
- script runs in:
<home path>/public_html/script.php
- photos are uploaded
<home path>/pictures/
i want to create thumbnails of the pictures using a script inside public_html so users can see if they uploaded the correct picture.
however, i have no idea how to code the pathway to the folder 'pictures'.
<img src="????/pictures/<name of picture>">
please help!
meaning:
- script runs in:
<home path>/public_html/script.php
- photos are uploaded
<home path>/pictures/
i want to create thumbnails of the pictures using a script inside public_html so users can see if they uploaded the correct picture.
however, i have no idea how to code the pathway to the folder 'pictures'.
<img src="????/pictures/<name of picture>">
please help!