05 2019 档案
摘要:<?php #定义删除路径//服务器缓存目录的路径 $path = '/www/wwwroot/****/data/runtime'; #调用删除方法 deleteDir($path); function deleteDir($dir) { if (!$handle = @opendir($dir)) { return false; } while (...
阅读全文
摘要:if (function_exists('curl_init')) { //检查函数是否存在 $url = "http://***.com/"; $ch = curl_init(); //初始化curl会话 curl_setopt($ch, CURLOPT_URL, $url); //设置url ...
阅读全文