开发者

Paths problem works '/file.xyz' doesn't work '../file.xyz' on the Web not in localhost?

开发者 https://www.devze.com 2023-03-27 07:38 出处:网络
Why does path like \'/file.xyz\' works on the web but do开发者_JS百科es not in localhost? I\'m using Xampp

Why does path like '/file.xyz' works on the web but do开发者_JS百科es not in localhost?

I'm using Xampp

In localhost I had to change it to '../file.xyz'


Windows uses a backslash rather than a forward slash. Use realpath($path) to get the correct path for the system.

http://www.php.net/realpath

0

精彩评论

暂无评论...
验证码 换一张
取 消