I can not tell if this is working but I have a script which is in the “Exam_app” folder. Now in another script which is also in the “Exam_app” folder I have a variable which determines a file path:
$destination_path = $_SERVER['DOCUMENT_ROOT']."/../uploads/";
Now I have an “uploads” folder within the “Exam_app”. What I want to know is that does the file path above means that it will it will take the user to the “uploads” folder in the
If your folder “uploads” is inside “exam_app” remove the “../”!
i would either like this:
or this (if your server has php5.3 or higher):
otherwise: