开发者

SITE_ROOT = Variable?

开发者 https://www.devze.com 2023-04-08 09:33 出处:网络
I\'d very much appreciate if someone could help me with a solution. How can I get this: d开发者_运维问答efine (\'SITE_ROOT\', $_SERVER[\'DOCUMENT_ROOT\'] . SITE_BASE);

I'd very much appreciate if someone could help me with a solution.

How can I get this:

d开发者_运维问答efine ('SITE_ROOT', $_SERVER['DOCUMENT_ROOT'] . SITE_BASE);

to look something like this:

define ('SITE_ROOT', [variable from root.com/directory/data.php] );

Many thanks.


<?php
    include_once("/directory/data.php");
    define('SITE_ROOT', $variable);
?>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号