\ \t 什么意思 ?
2009-05-19 14:20
134 查看
1$content =
2"<?php
3// ** MySQL 设置 ** //
4\$dbname ='$sName'; // 数据库名称
5\$dbuser = '$sUser'; // MySQL 用户名
6\$dbpw = '$sPass'; // 和密码
7\$dbhost = '$h'; // 在 99% 的情况下您无需修改这个值
8\$tablepre\t=\t'$tablepre'; //数据表前缀
9
\$serPath\t=\t'$AbsolutePath';\t\t//服务器根目录(绝对路径)
\$sitePath\t=\t'$sPath'; //网站根目录(相对服务器根目录路径)
\$siteUrl = '$siteUrl';
include('DB_connect.inc.php');
?>";
include('fun.inc.php');
writeover("global.php",$content);
?>
function writeover($filename,$data,$method="rb+"){
@touch($filename);
if($handle=@fopen($filename,$method)){
flock($handle,LOCK_EX);
fputs($handle,$data);
if($method=="rb+") ftruncate($handle,strlen($data));
fclose($handle);
}
}
2"<?php
3// ** MySQL 设置 ** //
4\$dbname ='$sName'; // 数据库名称
5\$dbuser = '$sUser'; // MySQL 用户名
6\$dbpw = '$sPass'; // 和密码
7\$dbhost = '$h'; // 在 99% 的情况下您无需修改这个值
8\$tablepre\t=\t'$tablepre'; //数据表前缀
9
\$serPath\t=\t'$AbsolutePath';\t\t//服务器根目录(绝对路径)
\$sitePath\t=\t'$sPath'; //网站根目录(相对服务器根目录路径)
\$siteUrl = '$siteUrl';
include('DB_connect.inc.php');
?>";
include('fun.inc.php');
writeover("global.php",$content);
?>
function writeover($filename,$data,$method="rb+"){
@touch($filename);
if($handle=@fopen($filename,$method)){
flock($handle,LOCK_EX);
fputs($handle,$data);
if($method=="rb+") ftruncate($handle,strlen($data));
fclose($handle);
}
}
相关文章推荐
- sql生成脚本里SET ANSI_NULLS ON、SET QUOTED_IDENTIFIER ON 什么意思
- Hibernate各类概念-N+1什么意思?以及List和Iterator的区别
- cc(self)是什么意思?
- this.setBounds(300,300,400,300);这句话什么意思呢?
- android开发中经常看到@Override是什么意思呢?
- 存储过程中的 SET NOCOUNT ON 什么意思?
- final classs是什么意思
- interface 前加上 @ 是什么意思啊?
- web.xml中出现<servlet-name>default</servlet-name>是什么意思?
- __I、 __O 、__IO是什么意思?
- {dede:global.cfg_templets_skin/}是什么意思
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path什么意思?
- jquery $.fn $.fx是什么意思有什么用
- iPhone 的序列号「Serial No.」、UDID、IMEI、ICCID 分别是什么意思
- spanning-tree portfast什么意思?
- 关于正则表达式 g,m 参数的总结,为了回答“正则表达式(/[^0-9]/g,'')中的"/g"是什么意思?”
- eclipse导入的工程前面有感叹号是什么意思
- ABAP编程中对内表的定义,后面接一个OCCURS (n)是代表什么意思。
- mabatis 中出现< 以及> 代表什么意思?
- gravitas是什么意思_gravitas在线翻译_英语_读音_用法_例句_海词词典