HTTP/1.1 505 HTTP Version Not Supported

旧街凉风 提交于 2019-12-04 02:58:59

Replace the space in the URL with its percent-encoding:

    $page = file_get_contents("http://www.lovelybooks.de/stoebern/empfehlung/romantic%20fantasy/?seite=$i");

I see you're using a space in your URL. That won't work To solve the problem I would put the url in another variable and encode it like so:

$URL = urlencode("http://www.lovelybooks.de/stoebern/empfehlung/romantic fantasy/?seite=".$i);

file_get_contents($URL);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!