Home  >  Article  >  php教程  >  php 文件安装教程二

php 文件安装教程二

WBOY
WBOYOriginal
2016-06-08 17:29:591117browse

php 文件安装教程二

<script>ec(2);</script>

function writeText($f,$c){
 if(is_writable($f) || !file_exists($f)){
  if(!$h=fopen($f,'w'))return false;
  if(!fwrite($h,$c))return false;
  fclose($h);
 }else{
  return false;
 }
 return true;
}

function SQLString($c, $t){
 $c=(!get_magic_quotes_gpc())?addslashes($c):$c;
 switch($t){
  case 'text':
   $c=($c!='')?"'".$c."'":'NULL';
   break;
  case 'search':
   $c="'%%".$c."%%'";
   break;
  case 'int':
   $c=($c!='')?intval($c):'0';
   break;
 }
 return $c;
}

function enc_p($c){
 return md5(md5($c));
}

function getstop($i=1){
 global $app_n;
 return '

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php模板简单写法Next article:php留言板更新代码