Home > Backend Development > PHP Tutorial > php 乱码转码 触发访问url的方法

php 乱码转码 触发访问url的方法

WBOY
Release: 2016-06-13 13:06:34
Original
1330 people have browsed it

php 乱码转码 触发访问url的方法【原创】

对于php的转码,用

iconv("UTF-8","GB2312","中文乱码") 从UTF-8转到GB2312

?

对于在php代码里突然触发访问某个url

file_get_contents($sendUrl);

?

如果访问不到,有可能是所在机器没有解析dns或现在访问公网。我就试过。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template