echo plugin_dir_url(__FILE__); zblog 通过文件获取应用URL地址 返回插件目录的URL地址

zblog9个月前zblog问题解答23
<?php /** @var ZBLOGPHP $zbp */
require_once '../../../../zb_system/function/c_system_base.php';
require_once '../../../../zb_system/function/c_system_admin.php';
$zbp->Load();

echo plugin_dir_url(__FILE__);


# 输出 http://www.zblog.cn/zb_users/plugin/guiyi_fabu/


相关文章

多域名 缓存Nginx配置 伪静态

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

php 大写转小写 小写转大写 大小写转换 例子 strtolower strtoupper

在 PHP 中,可以使用内置的函数来转换字符串的大小写。以下是几个例子:大写转小写:使用 strtolower() 函数将大写字母转换为小写字母。   <...

PHP PHP_SAPI 是啥意思 if ('cli' != PHP_SAPI) { 是判断是否命令行运行

if ('cli' != PHP_SAPI) {    if ($zblogx("iddahe_com_editor")->get_tok...

error_reporting(0); php 关闭 PHP 的错误报告 display_errors memory_limit set_time_limit 内存限制+ 时间限制 +不显示错误

error_reporting(0); 是 PHP 中的一个配置指令,用于关闭 PHP 的错误报告功能。在 PHP 运行过程中,如果没有开启错误报告,那么当出现错误时,PHP 不会显示任何错...

宝塔mysql重启 service mysql restart

宝塔mysql重启 service mysql restart

service mysql restart...

Nginx没有防火墙 Nginx设置加上 垃圾蜘蛛过滤

 if ($http_user_agent ~* "censys|bytedance|GPTBot|openai|Amazonbot|dotbot|c...