XHTML 1.0 Strict以前一直不知道 ,现在知道了,测试通过,简单!

呵呵,像又落后了十年了!
这样优化,可以让网页更标准,如果是动态保存的值!
$htmstr = <<<eot
<script src="http://s15.cnzz.com/stat.php?id=129471&web_id=129471&show=pic" type="text/javascript"></script>
eot;


$pattern =  "/(?<=src=\")([^\>]+?)(?=\")/i";

preg_match($pattern, $htmstr, $matchesarray);

$search = $matchesarray[0];

$replace = str_replace('&', '&amp;', $search);


echo str_replace($search, $replace, $htmstr)
Changsheng Fitness Trading Co.,LTD.is  a leading producer and exporter of high quality fitnessequipment and fitness accessories such as fitness dvds. Established in 2004, We have the large experience designers for your develop the new productions. that are manufactured and exported, considering the needs, durability, reasonable cost, ease of installation and flexibility. We present genuine modular ranges that involves the exclusive use of treatment with any poisonous, and harmful substances, at the same time our products does not harm the environment neither while under manufacturing or upon its use. With in a short span of time we have exported our both indoor and outdoor playground, abroad such as Thailand, Cyprus, Iran, India, Singapore, Brunei, and Saudi Arabia, New Zealand etc more than 60 countries., We also have exported to countries like Australia and United States. Our Clientele also include Municipalities, Schools, Recreation centers, Housing Societies, Villas, Beach resorts, Public Gardens and as well as Building Contractors.

   We also assist our clients if required, designing, installation assistance, and provide help as per request to prepare playground areas, and we also manufacture and supply custom designed models according to clients' tastes.  


http://www.fitnessequipmentworkouts.com/

Fitness equipment


   try
            {

                if (this.txt_send_area.Text == "")
                {
                    this.txt_send_area.Text = sign_order_head.Send_Post;

                    BG_AREA bgarea = new BG_AREA(sign_order_head.Send_Post, sign_order_head.Send_City);
                    this.txt_send_post.Text = bgarea.PostNo;
                }
                else if (this.txt_send_area.Text == this.txt_send_post.Text && this.txt_send_area.Text.Length == 3)
                {



                    try
                    {
                        //都是区号
                        int postno = Convert.ToInt32(sign_order_head.Send_Area);
                        BG_AREA bgarea = new BG_AREA(sign_order_head.Send_Area, sign_order_head.Send_City);
                        this.txt_send_area.Text = bgarea.AreaName;
                    }
                    catch
                    {
                        //文字
                        BG_AREA bgarea = new BG_AREA(sign_order_head.Send_Area, sign_order_head.Send_City);
                        this.txt_send_post.Text = bgarea.PostNo;

                    }

                }
                else
                {

                    this.txt_send_post.Text = Convert.ToInt32(txt_send_post.Text).ToString();
                }
              
                
            }
            catch
            {
                this.txt_send_post.Text = "000";
            }
<a href="javascript:vod(0)" onclick="$('#linkname').val($('#title').val().split(' ').join('-'))">从名称读取 </a>


关键是这个!
.split(' ').join('-')


做url 下面的这个方案更好  

<a href="javascript:vod(0)" onclick="$('#linkname').val($('#title').val().replace(/ +/g,'-'))">从名称读取 </a>

$pattern='/<body [^>]*?>.*?<\/body>/si';
$subject = $htmltext;

preg_match($pattern, $subject, $matches);
     print_r($matches);;

<!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>Untitled Document</title>
<style type="text/css">
.fourlist{ width:200px; height:150px;  background-color:#FC0; margin:5px 2px 5px 2px !important; margin:5px; display:inline-block !important; zoom:1!important;display:inline;  }
</style>
</head>

<body>
<p>一行四列非float演示</p>
<p>&nbsp;</p>
<div style="width:900px;">
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
</div>
</body>
</html>

  $pattern1='/SELECT+ .*?from/si';
            $all_rs = $db->rows(preg_replace($pattern1, 'SELECT count(0) as pagecount FROM', $sqlstr,1));
            $total= $all_rs['pagecount'];    //总得记录

理想的blog 不指定

Else , 2010/07/21 00:49 , 积累些,自己也写些 , Comments(0) , Reads(825) , Via Original
理想的blog,就是自己去写个blog
从来没有写过seo的文章,也不想写,最好的时候,有优化过个人网站,也就那时候开始,关注,后一有一时间,ip在3000-5000之关后,也不怎么关注,叫奏顺其自然
前几天因为sitemap的内容过多,所以写了一个sitemap的分页,还是用et来写,因为模板化,一切变得很简单!

刚才在QQ上听到tosen开始要做日文网站,我想,可以去注册一下,在去搜索引擎看了一下大部分的资料都在,

简单总结一下上面的发言,就是 "哦ye!"

在bo-blog一直没有更新,又想去安装一个论坛

发现原来的bmf论坛也不能下载,昨天的昨天安装了wp,找来找去,没有找到理想的模板,现在关于这个blog的seo真的是一点都不喜欢 ,因为开源,高手很多,但去改数据库的很少!

bob感觉很厉害!简单的出来一下,跟着的人很多,我没有用过我的et对bo的数据库进行分页,不知道效果怎么样

我要改bo的blog会改掉bo很多内容,可是,关键的一步,在今天晚上,没有可能解决,,这里我用了一招,放到测试站去,把缓存给弄好!

本来想写,学一下正则,结果,到了,某年某月的今天还是没有写成!某些人认为,我的QQ 空间都没有更新,那是因为不想用QQ空间,这个blog每年可都要发钱,钱来的不容易!

在备案越来越复杂的今天,能一个很好的空间商,很不错!

昨天昨天 不指定

Else , 2010/07/20 14:41 , 积累些,自己也写些 , Comments(0) , Reads(794) , Via Original
昨天不小心,把程序都改了,在看了一下,原来一些东西,都没有备注,结果改的时候就惨了!

改来改去,结果站都访问不了,是什么原因,忘记了!

没有查出来!
Tags: , , ,
Pages: 1/3 First page 1 2 3 Next page Final page [ View by Articles | List ]