Saturday, 10 January 2015

PHP Russian url encoding



When using this url-string in Simple_XML - http://ift.tt/1BZQaiU


I get this error -



simplexml_load_file(http://%D0%BA%D0%B2%D0%B0%D1%80%D1%82%D0%B8%D1%80%D1%8B0%B4%D0%BE%D0%BC%D0%B8%D0%BA%D0%B8.%D1%80%D1%84/Admin/Import/rieltonReport.xml) [function.simplexml-load-file]: failed to open stream: php_network_getaddresses:getaddrinfo failed: hostname nor servname provided, or not known


Is is possible to somehow point to the web-site using a url-encoder (tinyurl), or make php understand the russian letters?


No comments:

Post a Comment