I want to save directory root
value of file to database
.
ex:
I have file with directory c:\xampp\htdocs\myproject\app\views\index.php
, but i just want get myproject\app\views\index.php
.
I want to get value from the input type file, is it possible ?
This is how proccess I want to build, but the value not like I want.
i want when user click choose file in <input type='file' />
, i want default directory open in "myproject" . it's not about uploading file, i just want make validation from directory root value. in some case i have 2 file with same name "index.php", but one of file located in myproject\view\dir1\index.php
and another one in myproject\view\dir2\index.php
.
so that sets it apart is the root directory.
thanks for help me.