我有一个脚本,它使用file_get_contents()从远程服务器获得json响应。虽然file_get_contents()在本地文件上正常工作,但没有使用http或https,但它给出了以下错误file_get_contents(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in和file_get_contents(https://api.domain.com/resolve.json?url=blablabla): failed to open stream: no su
好的,所以,我正在构建一个花哨的裤子wordpress主题,主题的一部分让php获取图像宽度,并使用这些数字来调整页面元素的大小。它在我的本地机器上运行得很好,但当我使用cpanel将主题放到我的托管服务器上时,它不起作用。
我得到了这个错误
Warning: getimagesize() [function.getimagesize]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/yoursite/public_html/wpsite/wp-content/them
Warning: Unknown: open_basedir restriction in effect. File(/home/mk6g6obzufkw/mywebsite.com/index.php) is not within the allowed path(s): (G:/PleskVhosts//autismfights.com\;C:\Windows\Temp\) in Unknown on line 0
Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
嗨,我正在运行php安全信息,我得到了以下问题。
Warning
allow_url_fopen is enabled. This could be a serious security risk. You should disable allow_url_fopen and consider using the PHP cURL functions instead.
Current Value: 1
Recommended Value: 0
谁能解释一下我怎么才能解决这个问题。
Warning
PHP may be executing as a "privileged"