如何在Nodepad ++和Xampp控制器中运行PHP(sample.php) [英] How to run PHP(sample.php) in nodepad++ and xampp controller

查看:104
本文介绍了如何在Nodepad ++和Xampp控制器中运行PHP(sample.php)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道如何在nodepad ++中运行php.我已经安装了nodepad ++和xampp控制器,然后在nodepad ++中编写了非常简单的程序并保存了sample.php.
请告诉我应该将sample.php保存在哪里以及如何在计算机上运行.

I don''t know how can I run php in nodepad++. I already installed nodepad++ and xampp controller and then i wrote very simple program in nodepad++ and save sample.php.
Please tell me where should I save sample.php and how to run in my computer.

推荐答案

我将php文件保存在Apache服务器的文档根目录中使用XAMPP进行安装,这可能类似于XAMPP\htdocs,具体取决于您的安装方式.然后,您可以使用诸如http://localhost/filename.php这样的URL在浏览器中对其进行访问.
I save my php files in the document root for the Apache server installed with XAMPP, which would be something like XAMPP\htdocs, depending on how you did your install. You can then access it with your browser using something like http://localhost/filename.php as the URL.


这篇关于如何在Nodepad ++和Xampp控制器中运行PHP(sample.php)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆