1、用file_get_contents,以get方式获取内容。2、用fopen打开url,以get方式获取内容。3、使用curl库,使用curl库之前,可能需要查看一下php.ini是否已经打开了curl扩展。4、用file_get_contents函数,以post方式获取url。