Hello guys,
Here is my problem which is not big.
Under my web directory root I have one folder called "upload".
In "common.php" I set variable that refers to that path (at my machine) like this:
$UPLOAD_FOLDER = "E:/Work/Apache/htdocs/PHP/mysite/upload";
When I add some image it is saved in this folder correctly and it is working. I avoided saving image to database because this method is much faster. Now the problem...
I don't want to bother administrator of my ISP to ask him for
absolute path to that "upload" folder on his server (where my site
is hosted). And don't want to change "common.php".
Can this path be set relatively? How to get my website root?