您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

php 文件安装方法

2024/12/12 16:07:42发布39次查看
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:../');
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product