共 17 篇文章 |
|
class smtp{/* Constractor */function smtp($relay_host = "", $smtp_port = 25,$auth = false,$user,$pass){$this->smtp_putcmd("HELO", $helo)) {return $this->smtp_error("sending HELO command");$this->smtp_putcmd("AUTH LOGIN", base64_encode($this->user))) {return $this->... 阅23 转自lyl728 公众公开 11-08-22 10:51 |
"Cannot modify header information"的解决方法 阅265 转1 评0 公众公开 07-04-17 08:55 |
//var img=document.all.img1;//获取图片 var MaxWidth=200;//设置图片宽度界限 var MaxHeight=100;//设置图片高度界限 var HeightWidth=img.offsetHeight/img.offsetWidth;//设置高宽比 var WidthHeight=img.offsetWidth/img.offsetHeight;//设置宽高比 alert("test"+img.offsetHeight+img.fileSize);if(img.offsetHeight>1) ale... 阅376 转7 评0 公众公开 06-08-24 17:15 |
smarty的程序设计部分:$array[] = array("newsID"=>1, "newsTitle"=>"第1条新闻"); $array[] = array("newsID"=>2, "newsTitle"=>"第2条新闻"); $array[] = array("newsID"=>3, "newsTitle"=>"第3条新闻"); ... 阅2024 转14 评0 公众公开 06-08-11 21:32 |
用 PHP 读取和编写可扩展标记语言(XML)看起来可能有点恐怖。父标记 <books> 包含一组 <book> 标记,每个 <book> 标记又包含 <author>、<title> 和 <publisher> 标记。在 book 节点的循环中,脚本用 getElementsByName 方法获得 author、publisher 和 title 标记的 nodeValue。脚本的底部打开 books 标记,然后在每个图书中迭代,... 阅986 转9 评0 公众公开 06-08-11 10:26 |
* 函数列表* string domxml_version(void) 返回domxml的版本号* object xmldoc(string str) 从字符串创建XML的Domdocument对象* object xmldocfile(string filename) 从文件创建XML的Domdocument对象* object xmltree(string str) 解析xml文档,返回树状结构,不能用domxml函数改变* resource domxml_add_root(resource doc,string name) 添加... 阅803 转14 评0 公众公开 06-08-08 16:29 |
跳转有三种方法可以实现:一、用meta <meta http-equiv=refresh content=‘‘5‘‘ url=sina.com> 二、用header header("refresh:5;url=sina.com"); 三、用Javascript实现 echo "<script>alert(‘‘成功添加‘‘);"; echo "this.location.href=‘‘index.php‘‘;</script>"; echo "<... 阅574 转4 评0 公众公开 06-07-31 12:15 |
服务器变量:$_SERVER.这些单独的全局变量不是自动全局变量。举例来说,在URL地址为 http://example.com/test.php/foo.bar 的脚本中使用 $_SERVER[‘PHP_SELF‘] 将会得到 /test.php/foo.bar 这个结果。"PHP_AUTH_USER"当 PHP 运行在 Apache 模块方式下,并且正在使用 HTTP 认证功能,这个变量便是用户输入的用户名。"PHP_AUTH_... 阅3353 转7 评0 公众公开 06-07-31 12:14 |
【1】页面之间无法传递变量 get,post,session在最新的php版本中自动全局变量是关闭的,所以要从上一页面取得提交过来得变量要使用$_GET[’foo’],$_POST[’foo’],$_SESSION[’foo’]来得到。步骤四:找到php.exe的路径添加上去。如果一个变量没被赋值就引用在php里是被允许的,但会有notice提示,如果一个变量被赋空值,$foo=""或者$... 阅225 转7 评0 公众公开 06-07-31 00:49 |