Hope to see you again!

抛弃sitemap

连续n次的verify error

 

让我对这个sitemap.xml彻底绝望

 

http://www.refish.cn 

Posted by: freesu, 12/08 2007, 16:11 | PHP | Comments (1) | Permalink | Trackbacks (0)

等侍google, baidu的收录

一直在等侍,google,baidu赶快将这个网址

www.refish.cn 

 

赶快收录

 

不过似乎一直没有什么消息

 

比较郁闷 

Posted by: freesu, 12/06 2007, 13:46 | PHP | Comment | Permalink | Trackbacks (0)

资讯交友网 www.refish.cn

如果对人文,法律,财经,社会,科教有兴趣的

 

可访问: http://www.refish.cn 

Posted by: freesu, 11/30 2007, 12:14 | PHP | Comments (5) | Permalink | Trackbacks (0)

Generate static html with php

easy,  code below: 

<?
require_once("./config/config.php");
ob_start();
$id=$_GET[id];
$sql="select * from test where id='$id'";
$result=mysql_query($sql);
$rs=mysql_fetch_object($result);
$smarty->assign("showtitle",$rs->title);
$smarty->assign("showcontent",$rs->content);
$smarty->display("content.html");
$this_my_f= ob_get_contents();
ob_end_clean();
$filename = "$id.html";
tohtmlfile_cjjer($filename,$this_my_f);
//文件生成函数
function tohtmlfile_cjjer($file_cjjer_name,$file_cjjer_content)
{
if (is_file ($file_cjjer_name)){
      @unlink ($file_cjjer_name); //存在,就删除
}
$cjjer_handle = fopen ($file_cjjer_name,"w"); //创建文件
if (!is_writable ($file_cjjer_name)){ //判断写权限
      return false;
}
if (!fwrite ($cjjer_handle,$file_cjjer_content)){
      return false;
}
fclose ($cjjer_handle); //关闭指针
return $file_cjjer_name; //返回文件名
}
?>

  (More)
Posted by: freesu, 11/21 2007, 15:52 | PHP | Comments (4) | Permalink | Trackbacks (0)

hwo to use split

$kk = split ('[><]', $str);
foreach($kk as $value){
$sql="insert into industry_list(`name`) values('$value')";
$result=mysql_query($sql);
}
Posted by: freesu, 09/26 2007, 18:59 | PHP | Comments (1) | Permalink | Trackbacks (0)


1 2 3  Next»
© Fly our dream, All rights reserved.