Home > php教程 > PHP源码 > php 文件安装教程二

php 文件安装教程二

WBOY
Release: 2016-06-08 17:29:59
Original
1175 people have browsed it

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 '

Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template