我在用户定义的标签中使用php include()有一点问题。 就像在cmsms手册中描述的那样,您可以通过用户定义的标签将PHP代码添加到您的cmsms页面中。我努力了,但它没有用。 这是我想添加的代码:
<?php
$site="true";
include("/home/www/web23/html/wbt/index.php");
?>
我收到此错误:
Warning: include(wp.php) [function.include]: failed to open stream:
No such file or directory in
C:\xampp\htdocs\cmsms\lib\classes\class.usertagoperations.inc.php(260) :
eval()'d code on line 1
Warning: include() [function.include]: Failed opening 'wp.php' for inclusion
(include_path='.;C:\xampp\php\PEAR')
in C:\xampp\htdocs\cmsms\lib\classes\class.usertagoperations.inc.php(260) :
eval()'d code on line 1
答案 0 :(得分:0)
尝试删除/home/www/
它应该没有任何区别。至少在Windows中它没有