Since the creation of the PHP language in 1994, it has magically become the preferred language for website design. The release of PHP 4.0 in 2000 undoubtedly injected fresh life blood into it, and it was also respected for its open source mind. Getting started with learning a programming language is nothing more than learning syntax and basic application examples. During this period of time, I will record the PHP process bit by bit, firstly to summarize myself, and secondly to solve the doubts of subsequent learners who encounter the same problem.
Note-taking is mainly in the form of questions. It will not explore the basics of language bit by bit like a book-based class. Mainly in the basic stage of PHP learning, we foresee problems and record them one by one, and record the process of never understanding them. Well that's where the real PHP language begins.
1): What kind of development environment and development tools does PHP need?
Regarding the PHP language version issue, it is necessary to understand it, but I think it doesn’t matter much. Baidu/google can find these development version issues. If a worker wants to do his job well, he must choose a sharp tool! The first time is to configure the development environment. The development environment I first came into contact with was windows, but this time I am willing to conduct subsequent studies on Linux. Now I will show the deployment of both development environments once.
2): What are the steps for windows installation? What aspects need to be paid attention to?
The first is windows. Generally, for convenience, you will choose to install a tool suite on windows. Here I use WampServer for development. Wamp is the Windows Apache Mysql PHP integrated installation environment, that is, apache and php under windows. and mysql server software. Simple one-click installation and deployment of servers, databases, etc. without having to think too much. You can proceed directly to the next step. However, please pay attention to the following points during the installation process:
1. The path where the WampServer program is located cannot contain Chinese characters and spaces.
2. MySQL default username: root, password is empty
3. MySQL database file storage directory: wampbinmysqlmysql5.5.8data
4. Website root directory [HTML, PHP]wampwww
5. Please use http://127.0.0.1/ (if port 80 is not occupied) to access this machine
6. Non-default port, the URL is http:// 127.0.0.1: Port/
If an IIS server is installed, port 80 is occupied by default. You need to change the wamp service Internet port number: C:wampbinapacheApache2.2.17conf folder has the file httpd.conf Listen Node, change the port number to 80, or whatever you need. After modification, restart all services and run them.
Development tools: PHP development tools: Zend Stodio, PHPedit, EditPlus 2, easyeclipse, DW, etc. can be completed. As an inherited development tool, Zend is easier to use.
3): Is the installation package deployment environment also in the Linux environment? Is there a graphical management interface?
However, we can still develop PHP on Linux. The development environment I chose here is LAMP (linux+Apache+Mysql+PHP). I used the Ubuntu distribution version as an example to install the development environment. The Apache official website card can download the offline installation package or install it online. It is more convenient to choose online installation here. First use the Ubuntu system and enter the window command (Ctrl+Alt+t)
Installation of Apache
As a powerful Web program, Apache is naturally the first choice for building a Web server. Okay, let’s follow Let’s install Apache. Enter the following command in the terminal:
sudo apt-get install apache2
After the installation is completed, the next step is to start Apache
sudo /etc/init.d/apache2 restart
Browse Enter http://localhost or http://127.0.0.1 into the server. If you see "It works!", it means that Apache is successfully installed. The default installation of Apache will create a name under /var. It is the directory of www. This is the Web directory. All Web files that need to be accessible through the browser must be placed in this directory.
PHP installation
Installing software under Ubuntu is a very simple matter. It only requires one command. Execute the following command in the terminal:
sudo apt-get install libapache2-mod- php5 php5
After installation, we need to restart Apache and let it load the PHP module:
sudo /etc/init.d/apache2 restart
Next, we will create a new PHP file under the Web directory To test whether PHP can run normally, command:
sudo gedit /var/www/phpinfo.php
Then enter:
(Note: When using Change bloginfo to phpinfo (because of server restrictions, the phpinfo function cannot be used)
Then save the file and enter http://127.0.0.1/phpinfo.php in the browser. If a page showing PHP operating parameters appears, That means PHP is running normally.
But if the page is not displayed, but you are prompted to download the file, it means that Apaceh has not loaded the PHP module correctly. The solution is to add it to /etc /apache2/apache2.conf or /etc/ Add the following line of command to the apache2/mods-enabled/php5.conf file:
AddType application/x-httpd-php .php .phtml .php3
After adding the above command, pass the following command to apply Restarting Apaceh should solve the problem:
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 restart
There is a situation where this expectation does not occur page, it is possible that the folder www does not have appropriate access permissions. You can change the permissions of the www folder through sudo chmod +x ./www. (Those who are familiar with Linux permission management should know this)
MySQL installation
sudo apt-get install mysql-server
At the end of the installation, it will ask for the root password. Note, the root here The password is not the root password of Ubuntu, it is the root password you want to set for MySQL. Of course, if you are willing, you can set it to the same value. Because it is mainly used for local testing, MySQL has been installed here. If it is really going to be used as a server, you may need to refer to other settings. As for these settings, I will use them later. written down.
Okay, the installation of the development environment is over. Let’s wait to write a program that complies with the rules!

您可能想在网站上使用日历脚本的原因有很多。其中最常见的是用于列出和安排事件。另一种用途是提供一个链接来列出特定日期发布的所有博客文章或新闻事件。在某些情况下,您可能只是在寻找日期和时间范围选择器。考虑到所有这些用例,我创建了CodeCanyon上一些最流行的JavaScript日历脚本的列表。CodeCanyon上最畅销的JavaScript日历和事件日历脚本获取这些脚本之一并将JavaScript日历添加到您的网站或应用程序。这些脚本以低廉的价格提供了许多功能。如果您购买其中一款,您还可以获得

作为一名Java开发者,学习和使用Spring框架已经是一项必不可少的技能。而随着云计算和微服务的盛行,学习和使用SpringCloud成为了另一个必须要掌握的技能。SpringCloud是一个基于SpringBoot的用于快速构建分布式系统的开发工具集。它为开发者提供了一系列的组件,包括服务注册与发现、配置中心、负载均衡和断路器等,使得开发者在构建微

最近很多win7用户看到了微软发布的新闻,在2020年1月14日后win7将停止更新安全维护,系统将不会再提供安全向的更新,国内的正版win7用户就会比较担心,不能用了吗,其实还能使用的,完全不需要担心。win72020年不能用了吗答:还能继续正常使用,2020年只是微软不支持安全更新了,但其实国内的话不是正版系统没必要纠结,基本上不会影响使用。win7和win10使用走向:1、Windows7已坐稳十年的霸主地位,但根据Netmarketshare统计机构数据,在2019年7月份Windows

11月10日下午,中电信人工智能总经理何忠江在人工智能与数据产业发展合作论坛上,对通用大模型的产品和思路进行了解读何忠江首先分享了对通用人工智能的看法,他认为,通用人工智能是指能像人一样能看、能听、会思考,而能看需要视觉技术,能听需要语音技术,将视觉信息与语音信息采集到大脑之后,大脑对其进行加工判断,提供决策思路,通用大模型发挥的便是大脑的作用。当今的海量数据、先进算法、坚实算力也将推动大模型规模化发展。阐述完基本看法后,何忠江从中国电信星辰语义大模型、中国电信星辰多模态大模型进行了详细讲解。中

重写:重新编写/虚拟现实陀螺仪根据贝恩咨询公司(Bain&Company)最新发布的研究报告“TakingtheHyperboleOutoftheMetaverse”,预计到2030年,元宇宙的市值有望达到9000亿美元,尽管在接下来的5到10年中,它可能仍处于早期发展(种子孵化)阶段根据贝恩的报告,随着消费和企业应用对身临其境体验的重视增加,协作性也变得更强,元宇宙不太可能作为独立的平台出现。目前,使用XR技术的行业包括但不限于娱乐、工业制造、医疗保健和教育培训图源:贝恩咨询公司贝恩报

win7系统自带有备份还原系统的功能,如果之前有给win7系统备份的话,当电脑出现系统故障的时候,我们可以尝试通过win7还原系统修复。那么win7怎么还原系统呢?下面小编就教下大家如何还原win7系统。具体的步骤如下:1、开机在进入Windows系统启动画面之前按下F8键,然后出现系统启动菜单,选择安全模式登陆即可进入。2、进入安全模式之后,点击“开始”→“所有程序”→“附件”→“系统工具”→“系统还原”。3、最后只要选择最近手动设置过的还原点以及其他自动的还原点都可以,但是最好下一步之前点击

随着Web应用程序的需求越来越高,PHP技术在开发领域中变得越来越重要。在PHP开发方面,测试是一个必要的步骤,它可以帮助开发者确保他们创建的代码在各种情况下都可靠和实用。在PHP中,一个流行的测试框架是PHPUnit。PHPUnit是一个基于Junit的测试框架,其目的是创建高质量、可维护和可重复的代码。下面是一些学习使用PHPUnit框架的基础知识和步骤

就在2020年初,微软公司正式终止了对win7操作系统的更新支持,那么在这之后我们还能重装win7系统吗,其实是可以的,因为win7只是不再更新了,不代表它不能正常安装和使用。2020年还能重装win7系统吗答:能重装微软公司只是终止了win7的更新支持,不代表不能安装使用。win7系统重装教程:1、首先联网下载一个一键重装软件,下载后打开它。2、打开后,在“在线装机”里验机并进入“下一步”3、然后进入“win7”系统,挑选想要重装的系统版本。4、下面可以为你的c盘文件进行备份,不再这些文件夹里


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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
