embrr icon indicating copy to clipboard operation
embrr copied to clipboard

关于include引用config.php的路径问题

Open ITJesse opened this issue 10 years ago • 4 comments

最开始我是直接Down的源码上传使用,结果直接报错了 分析原因,是因为config.php没起作用 继续分析不起作用的原因,是在twitese.php中的一处include_once include_once('config.php'); 因为twitese.php是在根目录被引用的,因此这里的include是否应该改为 include_once('lib/config.php'); 反正我改了就好了。。。 或许是因为某些设置问题导致的,不过我还是在这里说一下。。

ITJesse avatar Apr 05 '14 09:04 ITJesse

You can local fix it and submit a commit to GitHub. Thanks!

Sent from my Windows Phone


From: Jesse Zhumailto:[email protected] Sent: ‎4/‎5/‎2014 17:06 To: AstroProfundis/embrrmailto:[email protected] Subject: [embrr] 关于include引用config.php的路径问题 (#52)

最开始我是直接Down的源码上传使用,结果直接报错了 分析原因,是因为config.php没起作用 继续分析不起作用的原因,是在twitese.php中的一处include_once include_once('config.php'); 因为twitese.php是在根目录被引用的,因此这里的include是否应该改为 include_once('lib/config.php'); 反正我改了就好了。。。 或许是因为某些设置问题导致的,不过我还是在这里说一下。。


Reply to this email directly or view it on GitHub: https://github.com/AstroProfundis/embrr/issues/52

shadowglen avatar Apr 05 '14 10:04 shadowglen

我好像没遇到过这个问题,你的系统环境?

AstroProfundis avatar Apr 09 '14 16:04 AstroProfundis

ApacheFriends XAMPP Version 1.8.2

Important! PHP in this package needs the Microsoft Visual C++ 2008 Redistributable package from http://www.microsoft.com/en-us/download/details.aspx?id=5582. Please ensure that the VC++ 2008 runtime libraries are installed on your system.

  • Apache 2.4.4
  • MySQL 5.5.32 (Community Server)
  • PHP 5.4.19 (VC9 X86 32bit thread safe) + PEAR
  • phpMyAdmin 4.0.4
  • OpenSSL 0.9.8y
  • ADOdb 5.18
  • Mercury Mail Transport System v4.62 (not included in the portable version)
  • FileZilla FTP Server 0.9.41 (not included in the portable version)
  • Webalizer 2.23-04 (not included in the portable version)
  • Strawberry Perl 5.16.1.1 Portable
  • Tomcat 7.0.41
  • XAMPP Control Panel Version 3.2.1 by hackattack142 (Great Thanks!!)) See: http://www.apachefriends.org/f/viewtopic.php?f=16&t=46743
  • XAMPP Security
  • XAMPP mailToDisk 1.0 (write emails via PHP on local disk in \mailoutput. Activated in the php.ini as mail default.)

ITJesse avatar Apr 09 '14 18:04 ITJesse

Orz 这个我就是想测试都搞不到环境............ 乃能不能看看 PHP 或者 web server 的设置里面有木有可能涉及到的地方,因为在 Linux 环境下没发现过这个问题,感觉是 PATH 一类的东西不一样造成的...

AstroProfundis avatar Apr 10 '14 15:04 AstroProfundis