PHP executes external commands with an anti-code marker and php executes external commands. PHP executes external commands with the marker, and php executes external commands such as echo 'whoam'. to export a database, the folder to be imported must have the write permission, the content after-u-p must be followed by an external command executed by PHP with an anti-float, and an external command executed by php
For example:
Echo 'whoam ';
// Export the database. the folder to be imported must have the write permission, and the content after-u-p must be followed by the write permission.
The code is as follows: echo 'mysqldump-h localhost-u $ DbUser-p $ DbPwd -- default-character-set = utf8 $ DbName>/var/$ dumpFileName ';
Other anti-apostrophes usage
<? Php # execute $ result = 'date'; echo"The server timestamp is: $ result
"; Echo"
"; # Use shell_exec () $ result1 = shell_exec (" date "); echo"The server timestamp is: $ result1
";?>
The output result is as follows:
The server timestamp is: current date: 2009/06/30 enter the new date: (year, month, day)
The above is all the content of this article. I hope you will like it.
Export example: echo 'whoam'; // export the database. the folder to be imported must have the write permission, and the content after-u-p must be...