motorway Posted June 11, 2009 Report Share Posted June 11, 2009 (edited) У меня проблема с функцией file_get_contents в PHP (fopen тоже не позволяет url делать). Нужно брать данные с другого сайта. Но включить allow_url_fopen не получается по нек-рым причинам. (в php.ini все время возвращается на состояние false). Есть ли выход, как брать данные? В принципе можно с помощью Яваскрипта, а затем парсить, но это как-то не очень нравится. Edited June 11, 2009 by motorway Link to comment Share on other sites More sharing options...
Ф@РТОВЫЙ Posted June 13, 2009 Report Share Posted June 13, 2009 Есть два выхода: 1) Использовать curl - http://ru.php.net/manual/ru/book.curl.php 2) использовать сокеты - http://ru2.php.net/manual/ru/book.sockets.php исходить надо из того что установлено в пхп на сервере, но курл проще. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now