I have a problem with my localhost website.
So I explain here my problem, I have a folder in localhost/sg/ with all php file. If i want to show a picture I should use /sg/upload/myfile.jpg for example.
But If I upload my php file on my server that’s doesn’t work, because I don’t have a /sg/ folder in my www folder.
So my question is, it’s possible to have a script who can manage this for offline and online?
If you have question, don’t hesitate.
Thank you.
set upload path relative to your site path
for example define a constant:
offline:
online:
then use this constant (SITEPATH) to locate the file upload destination