smtp发送邮件

2017-02-08 11:28:53

使用PHPMAIL类库 require("../tabs/inc/mail/class.phpmailer.php"); $mail = new PHPMailer(true);    //$address = 'magnetech@vip.163.com';    $address = 'linzhimao001@gmail.com';//要发送的地址    $mail->IsSMTP(); // set mailer to use SMTP    $mail->Port       = 25;    &...

评论(0) 浏览(1033)

PHP实现简单分页实例

2017-02-07 21:33:00

PHP实现简单分页实例 2009年09月20日 星期日 23:45 显示分页数据页面 index.php 文件代码: <?php include("conn/conn.php"); if ($page=="") {$page=1;};if ($ljjl=="") {$ljjl=0;};?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>查询结果的分页显示</title> <style type="text/css"> <!--...

评论(0) 浏览(1104)

jquery的一些用法

2017-02-07 21:32:09

1.想要触发某些事件的话,只要把相应的事件写入到 $(document).ready(function() {  // do stuff when DOM is ready }); 中,例如 $(document).ready(function() {  $("a").click(function() {   alert("Hello world!");  }); });其中的a是指链接,click相当于静态的onclick功能,在jquery中都把on去掉了 这里click里面接一个function就是我们要编辑的事件 2.jQuery提供两种方式来选择html的elements,第一种是用CSS和Xpath选择器联合起来形成一个字符串来传送到jQuery的构造器(如:$(...

评论(0) 浏览(2496)

fck中文乱码

2017-02-07 21:31:26

1、修正上传中文文件时文件名乱码问题 在文件fckeditor/editor/filemanager/connectors/php/commands.php中查找: $sFileName = $oFile['name'] ; 在后面添加一行: $sFileName = iconv("utf-8","gbk",$sFileName); 2、修正文件列表时中文文件名显示乱码问题 在文件fckeditor/editor/filemanager/connectors/php/util.php中查找: return ( utf8_encode( htmlspecialchars( $value ) ) ) ; 修改为: return iconv('','utf-8',htmlspecialc...

评论(0) 浏览(999)

fck使用

2017-02-07 21:30:27

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> </head> <script type="text/jav...

评论(0) 浏览(1103)

EMAIL AJAX验证

2017-02-07 21:29:50

//    function check_email(){ //   //      if (!document.getElementById("username").value.match(/^[a-z0-9][w.-_]+@w+(.w+){1,3}$/i)) {    //    document.getElementById("error_username").innerHTML = "EMAIL is not valid!"; //    return false //  ...

评论(0) 浏览(1044)

fopen跨服务器传递信息

2017-02-07 21:28:37

test.php $return_data =''; //发送请求,由于FOPEN与FSOCKOPEN的机制问题。不能直接根据COOKIE信息同步操作。因此只能发送一个GET请求。通过这个GET参数来进行判断。这边传的是BEHILL_COOKIE $handle=fopen('http://lzm.behill.com/jg_website/passport/login.php?act=cookie_status_check&behill_cookie='.@base64_encode($_COOKIE['behill_cookie']),'r'); while(!feof($handle)) {  $return_data .= fgets($handle); } //如果返回的是FAL...

评论(0) 浏览(1110)

改变字体大小

2017-01-21 10:35:56

无标题文档 字体:大 中 小 由浏览者自主改变字号 上网就上西安热线 ...

评论(0) 浏览(2270)

遭遇configure error libjpeg.(aso) not found

2017-01-20 14:43:52

遭遇configure: error: libjpeg.(a|so) not found 今天编译php-5.2.5的时候遭遇configure: error: libjpeg.(a|so) not found.这个问题,顺便做个记录。 解决方法是:yum install libjpeg-devel 再重新编译即可。 php官方也有解决方法: http://bugs.php.net/bug.php?id=33685 以下是转载的,而且都是基于yum install或者apt-get的。 1) Configure: error: xml2-config not found. Please check your libxml2 installation. Solutions : Quote: #yum ins...

评论(0) 浏览(2561)

在linux下利用crontab定时执行 PHP脚本

2017-01-20 14:43:31

在linux下利用crontab定时执行 PHP脚本   最近急需这种方法,记录一下,有空的时候尝试^^ 在 linuxcrontab + php的方法: 1、使用crontab –e编辑定时任务 内容为: xx:xx:xx 执行一个test.php文件 2、php文件必须在文件头一行,加上解释器路径(就象perl做的那样) #!/usr/local/bin/php PHP的执行需要Apache的支持,shell脚本的执行需要Linux的支持,而Linux支持定时运行某个程序的功能 --------------------------------------------------------------- 将PHP作为Shell脚本语言使用(转载) ...

评论(0) 浏览(2364)

Powered by PHP 学习者(mail:517730729@qq.com)

原百度博客:http://hi.baidu.com/ssfnadn

备案号:闽ICP备17000564号-1

开源中国 PHPCHINA