Hướng dẫn dùng fakepath meaning trong PHP

I am uploading an image via AJAX and the image uploads ok but the image´s name I am saving on database is like this:

c:\fakepath\2_3.png

How can I get rid of this "c:\fakepath\" before the image´s name with PHP.

Thanks

asked Dec 2, 2011 at 15:34

3

The back slash is tripping basename up.

Here is the solution:

Chủ Đề