|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-04-30 03:36 UTC] popoweiqi at qq dot com
Description: ------------ --- From manual page: http://www.php.net/function.pathinfo --- if the filename is "中文-English.html",test $fileName will be -english.html It is amazing Test script: --------------- $fileName = $_FILES['fileName']['name']; print_r(pathinfo($fileName)); Expected result: ---------------- $fileName="中文-English.html"; PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 23:00:02 2025 UTC |
Please try the following test script: $fileName = $_FILES['fileName']['name']; var_dump(bin2hex($fileName)); Which result do you get?