如何运行PHP代码 [英] how to run php code

查看:110
本文介绍了如何运行PHP代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是php的初学者.我在php中有很多教程,但没有人能提供有关如何运行PHP程序",所有方法都可以完成"的信息.所以请帮助.

I''m beginner to php.I got lots of tutorial in php but no one cannot the information about "HOW TO RUN PHP PROGRAMS","WHICH ALL WAYS IT CAN BE DONE".SO plz help.

推荐答案

尝试一些研究: PHP教程 [ ^ ].您可能会注意到"PHP是用于创建动态和交互式Web页面的强大工具.".
Try a little research: PHP Tutorial[^]. You may notice that "PHP is a powerful tool for making dynamic and interactive Web pages.".


首先,必须在Windows中安装WAMP,在Linux中安装XAMPP,才能启动PHP代码.运行.
安装后,您可以打开Web浏览器并键入localhost,您将获得wamp主页.
现在,将您的代码放在文件夹内的wamp或xampp的www目录或htdocs目录中.
现在,您的文件夹将显示在wamp页面上,然后选择它,然后选择php页面运行,它将运行您用php编写的php代码.
First you have to install the WAMP in windows and XAMPP in Linux for the starting the PHP codes to run.
After installing it you can open the web browser and type localhost there you will get the wamp home page.
now place your code inside the www directory or htdocs directory of the wamp or xampp inside a folder.
now your folder will shown on the wamp page and now select it and then select your php page to run that all it will run your php codes written in the php.


这篇关于如何运行PHP代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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