【php】
文章平均质量分 77
x314542916
不怕比我聪明的人,只怕比我聪明但比我还要努力的人
展开
-
error_reporting
在Windows环境下:原本在php4.3.0中运行正常的程序,在4.3.1中为何多处报错,大体提示为:Notice:Undefined varialbe:变量名称. 例如有如下的代码: 复制代码 代码如下: if (!$tmp_i) { $tmp_i=10; } 在4.3.0中运行正常,在4.3.1中运行会提示Notice:Undefined varialbe:tmp_i 问题下转载 2012-10-31 12:52:21 · 1776 阅读 · 0 评论 -
【php】获取当前url
function GetUrl(){ // 获取当前url $currentUrl = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']; $lastUrl = $_SERVER['HTTP_HTTP_REFERER']; $urlString = $lastUrl.$currentUrl; return $urlS原创 2012-11-05 19:11:12 · 552 阅读 · 0 评论 -
You probably tried to upload too large file.
You probably tried to upload too large file.解决! phpMyAdmin mysql导入数据库文件最大限制解决方法You probably tried to upload too large file You probably tried to upload too large file. Please refer to docume转载 2012-11-10 20:09:16 · 1106 阅读 · 0 评论 -
php 文件上传类
class IcoUpLoad{ /* 以下为默认值 */ private $destination_folder = "../images/"; private $destination_url = "../images/"; // 插入数据库的地址 private $max_ico_size = 1048576; //上传文件大小限制 5MB , 单位BYTE private $p原创 2012-12-18 23:30:32 · 450 阅读 · 0 评论 -
【php】文件上传函数,返回值为文件在服务器端的相对地址
function upload_files($_FILES) //只针对于uploa_pic_windows 框的图片上传 { // 控制上传的 文件类型 $allowtype=array('image/jpeg','image/gif','image/bmp','image/pjpeg' ); $files=$_FILES["ico"];//将上传在临时文件夹的文件信息存在数组 $t原创 2012-09-26 01:08:55 · 2369 阅读 · 0 评论 -
ajaxSubmitFormbyPost 函数的实现
function getXMLHTTP() { //fuction to return the xml http object var xmlhttp = false; try{ xmlhttp = new XMLHttpRequest(); } catch(e){ try{ xmlhttp = new ActiveXObjec翻译 2013-03-01 16:05:36 · 890 阅读 · 0 评论