简体   繁体   English

使用 Atom 设置 PHP 环境(用于 HTML+CSS+JS+PHP 开发)

[英]Setting up a PHP environment using Atom ( for HTML+CSS+JS+PHP development)

I'm seeking your support and expertise today.我今天正在寻求您的支持和专业知识。 I've started a project using html, css, and js and I'd need to add php to the file to enter & store data;我已经使用 html、css 和 js 启动了一个项目,我需要将 php 添加到文件中以输入和存储数据; I'm fresh to PHP programming- and before I begin to program my php file, I know I have to set up my environment for building php with Atom and storing my data to Workbench.我对 PHP 编程很陌生 - 在我开始对我的 php 文件进行编程之前,我知道我必须设置我的环境来使用 Atom 构建 php 并将我的数据存储到 Workbench。

My question, how do I setup ATOM for PHP development using MySQL Workbench on my Mac to connect to a local host viewed index.html file, and allow the user to fill out my form (my program is a simple invoice for quotes) on a html file and send the info back to workbench?我的问题是,如何在我的 Mac 上使用 MySQL Workbench 为 PHP 开发设置 ATOM 以连接到本地主机查看的 index.html 文件(我的报价单的简单表单) html 文件并将信息发送回工作台?

How do I set up Atom, and what code do I use to connect my index.html file to the sql-workbench, or what do I have to do?如何设置 Atom,使用什么代码将 index.html 文件连接到 sql-workbench,或者我需要做什么? What packages should I download, what steps do I take?我应该下载哪些软件包,我应该采取哪些步骤? any recommendations?有什么建议吗?

I tried researching on how to set up the environment but still lost as to what to do.我尝试研究如何设置环境,但仍然不知道该怎么做。 (Also, I'm open to other platforms that work as well with ATOM- so keep that in mind in your response.) (另外,我对其他与 ATOM 配合得很好的平台持开放态度——所以在你的回复中请记住这一点。)

First, rename your index.html to index.php.首先,将您的 index.html 重命名为 index.php。 With that you can insert php code within the file.这样您就可以在文件中插入 php 代码。 Here's some useful Atom packages to ease you for coding:以下是一些有用的 Atom 包,可帮助您轻松编写代码:

you need a webserver installed in your machine like MAMP or WAMP to run your php/mysql websites.你需要在你的机器上安装一个网络服务器,比如MAMPWAMP来运行你的 php/mysql 网站。

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

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