我有一个网站 (www.example.com | 123.456.789),在这台机器上我只运行了一个Web应用程序。我想使用php file_get_content()函数来获取我的服务器上的文件(位于类似/var/www/my_site/public_html的某些文件夹中)。
我所提到的PHP代码是:
$url = 'http://example.com/282-home_default/short-wallet-tan.jpg';
var_dump($url);
$json = @file_get_contents($url);
var_dump($json);
die();
然而,它总是返回错误。当我尝试使用CURL手动执行时,
![Curl Command](https://istack.dev59.com/zo3rs.webp)