zblog常用简写

zblog1年前zblog问题解答13904
print_r($zbp->currenturl); # 当前url 路径
访问 www.zblog.cn/post/123.html
就是 /post/123.html


echo $zbp->theme; # 当前主题名字  tpure


$zbp->Config('aaaaaTheme2')->domain 访问一个不存在的 设置
会返回NULL  可用来通过真假 来判断是否存在


相关文章

real_escape_string mysql处理特殊字符函数替换单引号等的函数 real_escape_string

$conn->real_escape_string($city);$conn->real_escape_string($city);real_escape_string...

只需三步,玩转火爆全球的DeepSeek

只需三步,玩转火爆全球的DeepSeek

——小白也能轻松上手的百度千帆大模型平台指南近期,国内大模型领域迎来了一颗“新星”——DeepSeek系列模型!百度智能云千帆平台已正式上线满血版本的DeepSeek-R1和DeepSeek-V3模型...

zblog文章重复 判断文章是否存在

1、方法1 $article = $zbp->GetListType('Post', 'select * from...

多域名 缓存Nginx配置 伪静态

location ~* (runtime|application)/{    return 403;}location ~* \.html$ {  if (-e &quo...

php 正则表达式替换 preg_replace 函数

在 PHP 中,你可以使用正则表达式(regular expressions)结合字符串替换函数(如 preg_replace 或 preg_replace_callba...

zblog创建表 和 删除表 的方法1

$table['cat_spider'] = '%pre%cat_spider'; # 定义这个可以使用 $zbp...