Home > php教程 > PHP源码 > body text

php 文件安装方法

WBOY
Release: 2016-06-08 17:30:00
Original
1065 people have browsed it

php 文件安装方法

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

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:../');
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!