
PHP
文章平均质量分 80
lzquan2010
这个作者很懒,什么都没留下…
展开
-
PHP 反射机制
<?phpclass ClassOne { function callClassOne() { print "In Class One"; }} class ClassOneDelegator { private $targets; function __construct() { $this->target[] = new Cl...2009-11-06 11:31:57 · 103 阅读 · 0 评论 -
php获取的系统时间不对
修改php.ini [Date] date.timezone = "Asia/Shanghai"2009-01-15 15:05:31 · 823 阅读 · 0 评论 -
ubuntu apache2 cgi 配置
Howto:Ubuntu下配置apache2和perl cgi06月 15th, 2007 | by fire3 | Table of Contents1 修改apache2配置文件2 安装mod_perl默认包3 相关配置4 测试配置成功与否本文主要指导简单配置apache2和perl的cgi程序运行环境。1 修改apache2配置文件将/etc/ap...原创 2008-12-31 17:06:35 · 283 阅读 · 0 评论 -
节点拖动后台处理
<?phprequire("../../include/conn.php");require("../../include/db_conn.php");require("../../tree/TreeMenu.php");$dbconn = new db_conn();$tree_menu = new TreeMenu($conn);//托拽类型$drag_type ...原创 2008-12-05 21:41:09 · 147 阅读 · 0 评论 -
用 C/C++ 写 CGI 程序
其实用 C/C++ 写 CGI 程序非常简单,主要是要清楚什么是 CGI。CGI全称 Common Gateway Interface (共同编程接口),是一种编程接口,不论什么语言,只要按照该接口的标准编写出来的程序,即可叫做 CGI 程序。CGI 程序的输入/输出是使用编程语言的标准输入/标准输出,所以用 C/C++ 来写 CGI 程序就好象写普通程序一样,不过还有几样东西要注意的。...原创 2008-12-04 11:16:57 · 804 阅读 · 0 评论 -
教师公开课教学系统
几个月前有个小学老师找我帮忙,要我给他做个小系统,大致需求是: 老师在机房上公开课,听课的学生是几个人一组,学生上完课之后可以发布一个作品,作品包括swf,doc,ppt格式,各组可以对其他组的作品评分、评论。但有个要求,学生不需要登陆即可直接上传作品。作品上传之后可以直接在线打开,打分之后自动形成分数排名。 要这老师搭建运行环境可能存在问题,因此我已经把apache...2009-12-02 11:30:22 · 354 阅读 · 0 评论 -
php 连接 MSSQL
<?php$myServer = "localhost";$myUser = "your_name";$myPass = "your_password";$myDB = "examples"; //connection to the database$dbhandle = mssql_connect($myServer, $myUser, $myPass) or di...2008-12-01 23:42:44 · 131 阅读 · 0 评论 -
php获取当前页
<?phpfunction curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER[&quo原创 2008-12-01 23:41:19 · 130 阅读 · 0 评论 -
php 文件上传
form html:<form enctype="multipart/form-data" action="upload.php" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="1000000" /> Choose a file to原创 2008-12-01 23:40:42 · 79 阅读 · 0 评论 -
php 连接 mysql
ow to connect to MySQL database using PHP Before you can get content out of your MySQL database, you must knowhow to establish a connection to MySQL from in...2008-12-01 23:40:13 · 127 阅读 · 0 评论 -
PHP 连接 DNS
DSN and DSN-less connections DSN stands for 'Data Source Name'. It is an easy way to assignuseful and easily rememberable names to data sources which may no...原创 2008-12-01 23:38:45 · 290 阅读 · 0 评论 -
php ajax 验证图片
CAPTCHA is a simple test to determine if a user is a computer or ahuman. It is used to prevent spam abuse on the websites. So if youuse CAPTCHA on your web site forms, this can help in stopping som...原创 2008-12-01 23:37:40 · 141 阅读 · 0 评论 -
php 创建小图片
<?phpfunction createThumbs( $pathToImages, $pathToThumbs, $thumbWidth ) { // open the directory $dir = opendir( $pathToImages ); // loop through it, looking for any/all JPG files: whil...2008-12-01 23:36:51 · 151 阅读 · 0 评论 -
php 数组(array)
Arrays can be used in many ways to store and organize data quicklyand efficiently. It is one of the more useful data types available toany programming language.Arrays can most easily be described ...2008-12-01 23:33:40 · 136 阅读 · 0 评论 -
在线Web 编辑器
22个所见即所得在线 Web 编辑器这些 Web 编辑器可以在线编辑和处理富 Web 内容,包括格式文本,表格,图片,媒体,链接等等,非常适合集成到 CMS 网站内容管理系统中使用。本文又搜集了 22 个 Web 在线编辑器,它们基本代表了当前 Web 编辑器的现状。1. TinyMCE免费,开源,轻量,基于 JavaScript,高度可定制,跨平台。2. ...原创 2010-02-05 18:52:17 · 203 阅读 · 0 评论