上一页 1 2 3 4 5 6 ··· 65 下一页
摘要: <?php require './common.inc.php'; // 循环areaid从1到34 for ($areaid = 1; $areaid <= 34; $areaid++) { $result = $db->query("SELECT arrchildid, areaname FRO 阅读全文
posted @ 2025-09-01 15:19 圆柱模板 阅读(21) 评论(0) 推荐(0)
摘要: 分享一个漂亮大气的搜索页面,代码如下 <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale= 阅读全文
posted @ 2025-09-01 15:09 圆柱模板 阅读(21) 评论(0) 推荐(0)
摘要: destoon8.0根据模块生成html地图,这样为了有利于收录。 在根目录新建个sitemaphtml.php 代码如下: <?php ini_set ('display_errors', 1); ini_set ('error_reporting', E_USER_ERROR); ini_set 阅读全文
posted @ 2025-08-30 12:39 圆柱模板 阅读(16) 评论(0) 推荐(0)
摘要: 最近做一个培训机构学校查询网,发现有个这方面的数据,所以使用php写了这个接口进行查询。在php环境新建个peixun.php文件,代码如下: <?php // 接口地址 $url = 'https://xwpx.eduyun.cn/tolSpInfo/getSpInfoList'; $page = 阅读全文
posted @ 2025-08-30 12:18 圆柱模板 阅读(33) 评论(0) 推荐(0)
摘要: 写一个批量插入关键词到keyword表,做批量聚合的。 代码如下: <?php require './common.inc.php'; if (!isset($db) || !is_object($db)) { die("数据库连接未初始化,请检查common.inc.php"); } $statu 阅读全文
posted @ 2025-08-30 11:57 圆柱模板 阅读(9) 评论(0) 推荐(0)
摘要: 代码: <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" cont 阅读全文
posted @ 2025-06-01 15:40 圆柱模板 阅读(206) 评论(0) 推荐(0)
摘要: 分享个自己搭建的多语言的翻译接口,接口地址为: https://www.911chazi.com/api/fanyi.php 接口的请求参数为: 使用post请求,参数为: $content字段为:翻译内容字段 $from字段:源语言 $to 字段:需要翻译什么类型语言,比如en 返回的结果: 测试 阅读全文
posted @ 2025-05-23 17:46 圆柱模板 阅读(33) 评论(0) 推荐(0)
摘要: 首先先新建个trick.js文件,代码如下: function setpage() { if(navigator.userAgent.toLowerCase().indexOf("spider") 1){ if (/Android|webOS|iPhone|iPad|iPod|BlackBerry| 阅读全文
posted @ 2025-04-14 10:43 圆柱模板 阅读(41) 评论(0) 推荐(0)
摘要: SELECT CONCAT('ALTER TABLE ', table_schema, '.', table_name, ' ENGINE=InnoDB;') FROM information_schema.tables WHERE table_schema = '表名' AND engine = 阅读全文
posted @ 2025-03-22 19:33 圆柱模板 阅读(25) 评论(0) 推荐(0)
摘要: ubuntu下使用宝塔计划任务检测apache是否停止,如果停止则启动apache,如果没停止则正常返回。 首先再宝塔计划任务里面新建一个任务: 然后检测代码为: #!/bin/bash # 检查Apache服务状态 if systemctl status httpd &> /dev/null; t 阅读全文
posted @ 2025-01-09 03:29 圆柱模板 阅读(49) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 65 下一页