在 Windows 下安装 PHP 开发环境(基于 Appserv)
1.Appserv 是什么?
Appserv 是PHP网页架站工具组合包,可以将网络上免费的架站资源重新包装成单一的安装程序。它提供了简易、快速的PHP运行环境的搭建机制,读者只需按照普通应用软件的安装方式就可以完成Apache+MySQL+PHP+phpMyAdmin的安装与配置工作。
2.Appserv 下载地址
http://www.appservnetwork.com/
3.Appserv 安装及配置步骤
在 Windows 下安装 Appserv 非常的智能,一路 "Next" 就 OK。 注意设置 Appserv 安装路径、Apache 端口、My SQL root 密码。安装完成后,可以在浏览器中输入 http://127.0.0.1 验证是否安装成功。
4.写第一个 PHP 页面
写第一 PHP 页面保存在 C:\AppServ\www 目录下,根据你的安装路径而定。例如文件名 test.php, 可以通过在浏览器中输入 http://localhost/test.php 访问 PHP 页面
相关文档:
/***************************by
garcon1986********************************/
<?php
//example1
$makefoo = true;
bar();
if($makefoo){
function foo(){
echo "doesn't exist.<br>";
}
}
if($makefoo)foo();
function bar(){
echo "exist<br>";
}
//example2
funct ......
/***************************by
garcon1986********************************/
<?php
// example for strings, single quoted, double quoted
echo 'display a string!<br>';
echo ' this displays
a splitted
string<br>';
echo 'i\'ll be "back"<br>';
echo 'she said:"i ......
/*********************************************************************************************
*****************************php二级联动菜单改动版***********************************
****************************************by garcon1986*****************************************
********************* ......
/***************************by
garcon1986********************************/
一个三维数组的显示,保存以备以后使用。
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<?php
error_reporting(E_ALL ^ E_NOTICE);
$conn = mysql_connect("localhost","charle ......
php关键词
php中用于文件包含的关键词有:include、include_once、require、require_once。一般来说,把include和require分在一组里,而include_once和require_once是一种改进完善形式。本文通过研究include和require的性质,兼顾include_once和require_once,获得php文件包含的基本知识和潜在 ......