从零开始PHP学习,从零开始php
<p>写这个系列文章主要是为了督促自己 每天定时 定量消化一些知识!</p> <p>同时也为了让需要的人 学到点啥~!</p> <p>本人技术实在不高!本文中可能会有错误!希望大家发现后能提醒一下我和大家!</p> <p>偷偷说下 本教程最后的目标是实现一个PHP的框架(虽然对我来说也许很遥远!~)</p>
昨天我们搭建了一个虚拟主机 并且成功运行了起来
今天我就要在这个虚拟主机中进行编写程序
上次建的虚拟主机 在目录 upupw/vhosts/www.test.local (后面www.test.loacl 为你上节课搭建的虚拟主机的域名)
我们先用PHPstrom打开我们的 upupw/vhosts/www.test.local
首先选择打开目录
然后就打开了这个项目
新建一个PHP文件 我们管他叫 lesson1.php (翻译lesson:课、课程)
单击之后
创建好了之后 单击文件会进入这个文件的编辑模式
一、第一个命令echo
echo是PHP中的输出语句,可以把字符串输出 字符串用引号括起来
例如
<?php echo 'hello world';
这样页面就会 输出一个hello world
不信? 试试看?
注意 PHP 每个命令后面都要加";" 千万别忘了 !~

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

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),

Dreamweaver CS6
Visual web development tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment