php文件读取错误
复制文件路径时,混入了奇怪的字符
# 使用simplexml_load_file读取xml文件内容 始终报错
# Warning: simplexml_load_file(): I/O warning : failed to load external entity "C:/Users/Administrator/Desktop/1.xml
# 使用file_get_contents依然报错 failed to open stream: Invalid argument in
$file = "C:/Users/Administrator/Desktop/1";
$xml = simplexml_load_file($file);
file_get_contents($file);
# 检查发现直接从windows上复制来的路径头部掺杂了其他符号
// 删除后 手打即可
# 多出来的字符unicode码为 \u202a 真是个神奇的字符