What is the variable to read the Application Dir ? after uploading a file....

After uploading a file succesful, I need to process a CSV file, How can i reference the App. Dir in my phph code ?

I was doind something like this but did not work :

$my_file = $str_path_apl_dir . “_lib/file/doc” . {my_uploaded_file}

In the Documentation there is nothing that talk about it…

Heeeellp !!

The first part is the document root which can be retrieved by

$myroot = $_SERVER[“DOCUMENT_ROOT”];

Then apply your relative path to this.