跳转到正文

php.

php相关的开发实践、问题记录与技术笔记。

php2 分钟

php生成站点地图sitemap

$data=[ ['loc'=>'https://www.cuiwei.net/', 'lastmod'=>'2009-01-01'],//首页 ]; $xml=createXML($data); file_put_contents('sitemap.xml', $xml); function createXML($d…

2,622 次阅读
阅读全文
php2 分钟

代理IP的使用

curl curl http://www.icanhazip.com/ curl -x 127.0.0.1:3128 http://www.icanhazip.com/ socks5 curl --socks5 127.0.0.1:3129 http://www.icanhazip.com/ php define(UR…

2,588 次阅读
阅读全文