PHP+MYSQL网站开发环境架设(5):PHPStudy
PHPStudy不一样,它含有IIS+PHP和Apache+PHP,软件推荐设置是后者。在任务托盘里也有图标,可以打开面板来看服务运行状态,也很简洁。一次性安装,无须配置即可使用,是非常方便、好用的PHP调试环境.该程序不仅包括PHP调试环境,还包括了开发工具、开发手册等.总之学习PHP只需一个包.对学习PHP的新手来说, WINDOWS下环境配置是一件很困难的事;对老手来说也是一件烦琐的事.因此无论你是新手还是老手,该程序包都是一个不错的选择.
软件下载地址:http://download.pchome.net/development/sever/php/detail-40373.html
看了群和论坛里看到好多朋友问测试环境的搭建的问题,很杂很无奈,就写了这篇。高手就不要看了。
因为只是为了本地测试,不需要自己配置太多(难道还想在自己的电脑发布到外网不成=_+!),所以选用的是“龙的心”的phpStudy v1.7.5。不是最新的PHP的环境,但比较稳定,测试刚刚好,还简单。偶的一贯作风是:够用就行。
一、 当然是下载软件喽,下载后得到phpStudy.rar,解压得到:phpStudy.exe。
二、 安装。双击phpStudy.exe:
2.1 选择语言,有English 和 简体中文 两种可选,【确定】:
2.2 安装向导的说明,phpStudy集成的特别好,基本上向导包括了所以需要的设置,【下一步】:
2.3 许可协议,有的选择吗,【下一步】吧:
2.4 提示很清楚,选择集成环境的安装路径,默认在“C:\Program Files\phpStudy”。然后【下一步】:
2.5 选择“虚拟文件夹”,以后你做好的php文件就放在这里进行测试,本文为“D:\www”,可以任意选择,但不要选择中文目录。然后【下一步】:
2.6 选择需要安装的组件,IIS和Apache二选一,本文选择Apache。如果系统已经安装了IIS,请选择IIS&PHP,不然可能会产生冲突。然后【下一步】:
2.7 安装 快捷方式 和 桌面图标:

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



PHP and Python each have their own advantages, and choose according to project requirements. 1.PHP is suitable for web development, especially for rapid development and maintenance of websites. 2. Python is suitable for data science, machine learning and artificial intelligence, with concise syntax and suitable for beginners.

To set up a CGI directory in Apache, you need to perform the following steps: Create a CGI directory such as "cgi-bin", and grant Apache write permissions. Add the "ScriptAlias" directive block in the Apache configuration file to map the CGI directory to the "/cgi-bin" URL. Restart Apache.

PHP is still dynamic and still occupies an important position in the field of modern programming. 1) PHP's simplicity and powerful community support make it widely used in web development; 2) Its flexibility and stability make it outstanding in handling web forms, database operations and file processing; 3) PHP is constantly evolving and optimizing, suitable for beginners and experienced developers.

The steps to start Apache are as follows: Install Apache (command: sudo apt-get install apache2 or download it from the official website) Start Apache (Linux: sudo systemctl start apache2; Windows: Right-click the "Apache2.4" service and select "Start") Check whether it has been started (Linux: sudo systemctl status apache2; Windows: Check the status of the "Apache2.4" service in the service manager) Enable boot automatically (optional, Linux: sudo systemctl

PHP is used to build dynamic websites, and its core functions include: 1. Generate dynamic content and generate web pages in real time by connecting with the database; 2. Process user interaction and form submissions, verify inputs and respond to operations; 3. Manage sessions and user authentication to provide a personalized experience; 4. Optimize performance and follow best practices to improve website efficiency and security.

PHP is widely used in e-commerce, content management systems and API development. 1) E-commerce: used for shopping cart function and payment processing. 2) Content management system: used for dynamic content generation and user management. 3) API development: used for RESTful API development and API security. Through performance optimization and best practices, the efficiency and maintainability of PHP applications are improved.

To delete an extra ServerName directive from Apache, you can take the following steps: Identify and delete the extra ServerName directive. Restart Apache to make the changes take effect. Check the configuration file to verify changes. Test the server to make sure the problem is resolved.

PHP and Python have their own advantages and disadvantages, and the choice depends on project needs and personal preferences. 1.PHP is suitable for rapid development and maintenance of large-scale web applications. 2. Python dominates the field of data science and machine learning.
