您好,欢迎访问一九零五行业门户网

php 文件安装方法

php 文件安装方法
require_once('inc.php');
if(!file_exists($l_file)){
 echo getstop();
 if(!file_exists($c_file)){
  if($_server['request_method']=='post' && $_post['hostname']!='' && $_post['database']!='' && $_post['username']!=''){
   if(@mysql_connect($_post['hostname'], $_post['username'], $_post['password'])){
    if(mysql_select_db($_post['database']) || mysql_query('create database '.$_post['database'])){
     $c_content=;
     writetext($c_file,$c_content);
    }else{
     $e=1;
    }
   }else{
    $e=2;
   }
   echo '';
  }else{
   if(isset($_get['e']))$msg=$_get['e']==2?'无法连接数据库!':'无法建立数据库!';
   if(isset($msg))echo '
'.$msg.'
';
?>
 第1步:配置mysql
主机名:
数据库名:
用户名:
密码:
表前缀:
  }
 }else{
  echo '要安装'.$app_n.',请先删除“'.$b_file.'”。
';
 }
 echo getsfoot();
}else{
 header('location:../');
其它类似信息

推荐信息