Php: how to obtain the absolute path image of the form Upload File: how to obtain the address containing the absolute path, for example, D: phpEssampwwwroothuaxiaImg1 php: how to obtain the absolute path of the form Upload file
Image:
$ Src = $ _ POST ['src'];
Get 1.jpg
How to obtain an address containing an absolute path, such as: D: \ php \ Essamp \ wwwroot \ huaxia \ Img \ 1.jpg
------ Solution --------------------
When the file changes (onchange time record), the src value is assigned to the hidden domain, and the server can obtain the hidden domain.
------ Solution --------------------
1. this is meaningless. displaying the user's local path will lead to resentment.
2. if you have to do this, you can assign the string in the input box to the hidden variable on the page so that you can post the variable.
Let me give you a reference. you can assign the hidden variable to js.