我正在尝试调整别人的网站。在本地 apache 设置上测试代码时如何访问他的数据库?这是我认为他编写的相关代码:
define("INCLUDE_PATH", "/home/inter/public_html/toolmanager/includes/");
$this->default_mySQL_database="domain.com,xxxx,xxxx,xxxx";
...
$include=constant("INCLUDE_PATH").$path.$filename;
$handle = fopen($include, "r");
$data = fread($handle, filesize($include));
fclose($handle);
我在 fopen() 行收到此错误:
Warning: fopen(/home/inter/public_html/toolmanager/includes/platform/cache.php): failed to open stream: No such file or directory in C:\xampp\htdocs\toolmanager\toolmanager\includes\classloader_platform.php on line 401
出于某种原因,它仍在尝试访问本地主机。我很难理解他的代码,所以如果我需要发布其他内容,请告诉我。