PHP:Hypetext Preprocessor!(超文本预处理器)
1、 PHP程序是内嵌在页面中
2、 PHP程序代码必须放置在“<?php”标记与“?>”标记中间
3、 使用分号分隔PHP语句
Echo “hello world”;
4、 PHP的4种标记风格
1、 XML标记风格
<?php
Echo “Hello World”;
?>
2、 短标记风格
<?
Echo “Hello World”;
?>
3、 ASP标记风格
<%
Echo “Hello World”;
%>
4、Script标记风格
<SCRIPT LANGUAGE=’php’>
Echo “Hello World”;
</SCRIPT>
5、 为我们的程序添加注释
1、 C++语言风格的单行注释 (//)
2、 Shell脚本风格的单行注释(#)
3、 C语言风格的多行注释(/* */)
6、 基本数据类型
1、 整形(integer)
2、 浮点型(float)
3、 布尔型(boolean)
4、 字符串(string)
5、 数组(array)
6、 对象(object)
Web 2.0介绍:
Client Server —>Web Server
Web 2.0的新特性:
1、 信任
2、 参与
3、 永远试用版
4、 敏捷开发
5、 保留住权力
6、 长尾
7、 内部信息的可用性
8、 知识数据库
9、 垃圾信息过滤器
10、 Rss技术
11、 提高用户体验
Ajax:
Asynchronous (asynchronous英音:[ei'siŋkrənəs]美音:[e'sɪŋkrənəs])Javascript and XML(异步JavaScript和XML)
Web2.0中的Div+CSS(Cascading Style Sheets层叠样式表单)布局
负载均衡(load balance)是一种建立在现有网络架构之上,通过廉价、有效、透明的方法来扩展网络设备和服务器的带宽、增加吞吐量、加强网络连接数据的处理能力、提高网络灵活性和可用性的方法集合。
F5
Varnish&squid
Form—>demo:
<?php
/*
* Created on 2011-2-27
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
?>
<form action="" method="POST">
<input type="submit" name="subbtn" value="保存信息"><br>
<input type="submit" name="subbtn" value="确认信息"><br>
<?php
if(isset($_POST['subbtn'])){
if(strcmp($_POST['subbtn'],"保存信息")==0){
echo "信息保存成功"."<br>";
}else{
echo "确认填写的信息......";
}
}
?>
<form action="" method="POST">
验证测试:<input type="text" name="test" value=""/>(长度不小于6)<br>
<input type="submit" name="submit" value="测试">
<?php
if(isset($_REQUEST['test'])){
if((strlen($_REQUEST['test'])<6)){
echo "输入字符长度不能小于6";
}else{
echo "测试成功";
}
}
JavaScript—>demo:
Js:
function helloWorld(){
var hello="hello"+document.getElementById("user").value;
alert(hello.toLowerCase());
}
function bidHelloWorld(){
var hello="hello"+document.getElementById("user").value;
alert(hello.toUpperCase());
}
function check(big){
var user=document.getElementById("user").value;
if(user==""){
alert("请输入用户名");
}else{
switch(big){
case 1:helloWorld();
break;
case 2:bigHelloWorld();
break;
default:alert("出错");
}
}
}
Php:
<?php
/*
* Created on 2011-2-27
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
?>
<html>
<head>
<script type="text/javascript" src="sayHello.js"></script>
</head>
<body>
<div align="center">�?���<input type="text" name="user"/></div>
<div align="center"><button onclick="check(1)">say hello</button>
<button onclick="check(2)">SAY HELLO</button></div>
</body>
</html>
AJAX:
包含:XMLHttpRequest、JavaScript、XML、XSLT、XHTML、CSS、和DOM,其中JavaScript、XMLHttpRequest、DOM、和XML为其核心技术。
XMLHttpRequest
XML(eXtensible Markup Language)可扩展标记语言
DOM(Document Object Model)文档对象模型
JPGraph 测试demo:
<?php
/*
* Created on 2011-2-27
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
?>
<?php
include ("D:\jpgraph\src\jpgraph.php"); //必须要引用的文件
include ("D:\jpgraph\src\jpgraph_line.php"); //包含曲线图文件
// y 轴数据,以数组形式赋值
$ydata = array(2001,480,367,54,364,42,3,133,1942,21,68,1473,184,147,53,401,31,1608,38,150,1928,1188,1898,28,28,863,1037,628,334,474,28,95,27,1451,991,231,448,326,446,9,73,98,164,31,30,56,1945,656,7,350,160,221,36,830,182,800,2,842,521,523,701,649,567,1184,1017,1370,880,114,990,899,1,741,185,1902,223,525,917,1437,1905,167,84,347,86,467,3,1911,36,1204,1998,1091,1999,146,1919,1732,611,677,559,997,528,1922,1920,167,844,865,344,289,234,473,432,212,195,162,57,1002,736,1919,1792,1989,709,967,1457,566,499,1994,1618,1904,288,448,1422,1419,577,258,363,1397,497,330,117,306,455,837,743,1499,1816,1025,1178,1521,1931,1612,1120,1625,1992,100,1385,801,604,1896,979,1431,80,313,1294,219,5,85,499,1392,192,1994,1870,1185,1756,231,1948,1908,22,1912,30,12,29,95,30,62,1209,67,30,29,30,31);
// 创建 Graph 类,350 为宽度,250 长度,auto:表示生成的缓存文件名是该文件的文件名+扩展名(.jpg .png .gif ……)
$graph = new Graph(360,250,"auto");
// 设置刻度类型,x轴刻度可作为文本标注的直线刻度,y轴为直线刻度
$graph->SetScale("int");
// 创建坐标类,将y轴数据注入
$lineplot=new LinePlot($ydata);
// y 轴连线设定为蓝色
$lineplot->SetColor("blue");
// 坐标类注入图标类
$graph->Add($lineplot);
// 显示图
$graph->Stroke();
?>
因近期要做一个php的demo。So花周末时间看了一本有关php的书,算是简单入门了。
分享到:
相关推荐
up a collection. Chapter 6, Everything under Control with Events and Observers, will allow us to learn everything about the events in the context of Eloquent models. Right after, we will cover model ...
30秒的代码满足您所有开发需求的简短PHP代码段访问以查看我们的摘要集。 使用“查找适合您需求的片段。 您可以按名称,标签,语言或代码段描述进行搜索。 只需开始输入一个术语,然后看看会发生什么。 浏览以查看此...
使用Cranfield Collection和sample.php文件 已成为信息检索中验证系统有效性的先驱集合。 我已经将1400抽象的Cranfield集合作为XML文件包含在内,您可以将其解析为单独的文件。 可以立即执行tests / sample.php中...
http://wiki.overbyte.be/wiki/index.php/ICS_Download ICS V5 and V6 are archive releases no longer updated, last supported release was 2007. ICS V7 is a stable release that may still be updated for ...