所以,我有一个名为init.php的文件,应该放在我网站上的每一页上面。在这种情况下,它在我的index.php中。在这个init.php内部是一段代码,它包含一个名为include的文件夹中的所有文件。当我试图在index.php文件中调用一个函数时,这个函数是在一个应该包含的文件中定义的,我只会看到一个错误,即Call to undefined function errors_return()。知道这是怎么回事吗?
//index.php
<?php
include "php\init.php";
//errors_return(); is a defined fun
对于Unix上的sed命令,我遇到了一些困难。好像也在linux上..。
这是我的文件中的一行,我要修改:
# id=<$IdEDFRGB.RR '" fgg t uj67575 uj:$ g re ee >
它应该是在倒置之后:
# id=<$Id22 02 21 17:13$ g re ee >f rgrge
当我使用这个sed命令(初始化DT变量之后):
sed "s/<\$Id.*\$/<\$Id${DT}\$/g"
我获得:
# id=<$Id22 02 2021 17:41$
我失去了正确的部分。有人能帮我
简单地跑
echo "This is a **test** see ![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png)"
你得到:
bash: ![alt: event not found
为什么?这是预期的This is a **test** see ![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png)
我一直在尝试向我的数据库中插入一些事件页面的数据。我有一个html表单和一个单独的脚本,如下所示,提交似乎通过了ename id和imgsrc值,但除此之外什么都没有。如果有更多的错误,我会得到一个You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'when, descr, positions) VALUES (test, 1 ,www.vzdc.org,2017-1-2