dongli4711
2018-04-06 11:01
浏览 196
已采纳

如何使用xampp运行包含多个php文件的文件夹?

When I try localhost/myfiles opens just file list but i need those files to run. How can i run all xxxx.php at the same time? For exmple: I have a folder my files and it contains: a.php, b.php,c.php, so how run a,b and c files together?

图片转代码服务由CSDN问答提供 功能建议

当我尝试localhost / myfiles打开文件列表但我需要运行这些文件。 我怎样才能同时运行所有xxxx.php? 例如:我有一个文件夹我的文件,它包含:a.php,b.php,c.php,那么如何一起运行a,b和c文件?

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dtcaw02086 2018-04-06 11:22
    已采纳

    You can create a PHP file like main.php on a directory and then use the statement include and attach your files to it

    for example:

    <?php
    include 'a.php';
    include 'b.php';
    include 'c.php';
    .
    .
    .
    ?>
    

    type on browser

    locallhost/yourDirectory/main.php
    
    打赏 评论

相关推荐 更多相似问题