Home  >  Article  >  Backend Development  >  photoshop cs2 v9.0 green Chinese version collection of some commonly used php simple command codes

photoshop cs2 v9.0 green Chinese version collection of some commonly used php simple command codes

WBOY
WBOYOriginal
2016-07-29 08:37:10996browse

Delete:
Reference
if(file_exists("file.htm"))//Check if this file exists
if(file_exists("chat"))//Check if this folder exists
rename('index.php' ,'index'); //Rename index.php to index
fopen("name.php","a+"); //Create file
mkdir("boot","0777"); //Create folder And set the attribute to 777
rmdir ("include");//Delete the folder
unlink("index.php");//Delete the file
Query of the database:
Reference
$db = new db_query;
$db- >connect();
$db->query("DROP DATABASE $DbName;");//$dbname is the database name
Connection:
Reference
header("location:index.php");//Transfer Go to the web page
echo "Step 2: Please choose whether to delete all files [Chat Room]
";//Write the code
unset($tmp); //Clear the original cache
require("global.php ");//Cache
print <<< eot //Write the code
eot;

The above has introduced a collection of some commonly used PHP simple command codes in photoshop cs2 v9.0 green Chinese version, including the content of photoshop cs2 v9.0 green Chinese version. I hope it will be helpful to friends who are interested in PHP tutorials.

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