简体   繁体   English

包括无法正常工作的easyphpdev服务器

[英]includes not working easyphpdev server

I am running easyPHP Devserver 16.1.1 and having a bit of trouble with this local server, it won't show me any PHP locally. 我正在运行easyPHP Devserver 16.1.1,并且对此本地服务器有一些麻烦,它不会向我显示任何PHP。 I've tried reinstalling it but that doesn't help. 我试过重新安装它,但这无济于事。

The program runs just fine, shows all the HTML I've got in the site but it does not process code like this: 该程序运行良好,显示了我在网站上获得的所有HTML,但是它不会处理以下代码:

<?php include("/menu.php"); ?>

<?php include("/slide1.php"); ?>

I am new too PHP and this is really hurting my stride.. Any ideas on how to fix this? 我也是PHP的新手,这确实伤害了我的进步。.关于如何解决此问题的任何想法? Many thanks in advance 提前谢谢了

if you are try to get file within same folder then you don't need to write like this 如果您尝试在同一文件夹中获取文件,则无需这样写

you can just write this 你可以写这个

or include 'filename'; 或包含“文件名”; or require 'filename'; 或要求使用“文件名”;

for innner folder user folder path like this require 'abc/b/filename'; 对于这样的内部文件夹用户文件夹路径,需要“ abc / b / filename”;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM