国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

? ??? ?? PHP ???? PHP ?????? ?? ??? ?? PHP ?????? ?? ???? ?????

PHP ?????? ?? ??? ?? PHP ?????? ?? ???? ?????

Jul 25, 2016 am 08:56 AM

  1. error_reporting(0);//?? ??? PHP ?? ???? ??
  2. //??? ??
  3. $options = array ( '???' => array('email1', 'email2'),
  4. '??' => './backup/',
  5. 'mysql' => ', 'password', 'db'));
  6. $b = new Backup($options);
  7. // ?? ?? ??
  8. if(isset($_POST[ ' backup']))
  9. {
  10. // ?? ??
  11. $b->backupDB();
  12. }
  13. // ?? ??? ??
  14. $b->outputForm ( );
  15. ?>
?? ??

PHP ?????? ?? ??? ?? ??:

  1. /**
  2. * mysql ?????? ??
  3. * ??: bbs.it-home.org
  4. */
  5. ??? ??
  6. {
  7. /**
  8. * @var? ?? ????? ???? ? ?????
  9. */
  10. var $config;
  11. /**
  12. * @var? mysql ?? ???? ???? ? ?????
  13. */
  14. var $dump;
  15. /**
  16. * @var? ?????? ?? ??? ? ?? ??? ?????
  17. */
  18. var $struktur = ?? ();
  19. /**
  20. * @var ????? zip
  21. */
  22. var $datei;
  23. /**
  24. * ??? ??
  25. * ??????? ??
  26. * @return
  27. */
  28. ?? ?? Backup($options)
  29. {
  30. //?? ?????? ?? ??
  31. foreach($options AS $name => $value)
  32. {
  33. $this->config[$name] = $value ;
  34. }
  35. //??????? ??
  36. mysql_connect($this->config['mysql'][0], $this->config['mysql'][1],
  37. $this->config['mysql'][2]) ?? die(mysql_error());
  38. mysql_select_db($this->config['mysql'][3]) ?? die(mysql_error ());
  39. }
  40. /**
  41. * ?????? ?? ????? ???? ??
  42. * @return
  43. */
  44. ?? ?? backupDB()
  45. {
  46. // ?? ?? ??
  47. if(isset( $_POST['backup']))
  48. {
  49. // ??? ???? ?????? ??
  50. if(empty($_POST['table']))
  51. {
  52. die( " ??? ???? ??????.");
  53. }
  54. /**?? ?? **/
  55. $tables = array();
  56. $insert = array();
  57. $sql_statement = '';
  58. //?? ???? ?? ???? ???? ?? ??????? ????.
  59. foreach($_POST['table'] AS $table)
  60. {
  61. mysql_query(" LOCK TABLE $table WRITE" );
  62. // ?????? ?? ????
  63. $res = mysql_query('SHOW CREATE TABLE '.$table.'');
  64. $createtable = mysql_result($ res, 0, 1);
  65. $str = "nn".$createtable."nn";
  66. array_push($tables, $str);
  67. // ?? ??? ?? ??? ???? ?
  68. $sql = 'SELECT * FROM '.$table;
  69. $query = mysql_query($sql) ?? die(mysql_error());
  70. $feld_anzahl = mysql_num_fields($query) ;
  71. $sql_statement = '--
  72. -- ??? ??? `$table`
  73. --
  74. ';
  75. // ??? ??? ???? ???? ?? ??
  76. while ($ds = mysql_fetch_object($query)){
  77. $sql_statement .= 'INSERT INTO `'.$table.'` (';
  78. for ($i = 0; $i <$ feld_anzahl;$i ){
  79. if ($i ==$feld_anzahl-1){
  80. $sql_statement .= mysql_field_name($query,$i);
  81. } else {
  82. $sql_statement .= mysql_field_name($query,$i).', ';
  83. }
  84. }
  85. $sql_statement .= ') VALUES (';
  86. for ( $i = 0; $i <$feld_anzahl;$i ){
  87. $name = mysql_field_name($query,$i);
  88. if (empty($ds->$name)){
  89. $ds-> ;$name = 'NULL';
  90. }
  91. if ($i ==$feld_anzahl-1){
  92. $sql_statement .= '"'.$ds->$name .'"';
  93. } else {
  94. $sql_statement .= '"'.$ds->$name.'", ';
  95. }
  96. }
  97. $sql_statement .= ");n" ;
  98. }
  99. // ?? ???? ??? ?? ?? ??
  100. if(!in_array($sql_statement, $insert))
  101. {
  102. array_push ($insert, $sql_statement);
  103. unset($sql_statement);
  104. }
  105. unset($sql_statement);
  106. }
  107. // ?? insert ??? ??? ?????? ?? ?? ?? ??
  108. $this->struktur = array_combine($tables, $insert);
  109. //?? ?? ??
  110. $this->createDUMP( $this->struktur );
  111. // zip ??? ??
  112. $this->createZIP();
  113. /**?? ?? **/
  114. // ?? ??? ??? ???? ???? ????(??? ??). ^_^
  115. if(isset($this->config['email']) && !empty($this->config[' email']))
  116. {
  117. $this->sendEmail();
  118. }
  119. // ??
  120. echo '

    ?? ??

    ?? ????


  121. ';
  122. }
  123. }
  124. /**
  125. * ??? ??? ??
  126. * @return
  127. */
  128. ??? ?? sendEmail()
  129. {
  130. // ??? ?? ??
  131. foreach($this->config['email'] AS $email)
  132. {
  133. $to = $email;
  134. $from = $this->config ['email'][0];
  135. $message_body = "? ???? ??? zip ???? ?????? ?????.";
  136. $msep = strtoupper ( md5 (uniqid (time () )));
  137. // ??? ?? ??
  138. $header =
  139. "From: $fromrn" .
  140. "MIME-Version: 1.0rn" .
  141. "??? ??: ?? ??/??; ??=".$msep."rnrn" .
  142. "--$mseprn" .
  143. "??? ??: ???/??rn" .
  144. " ??? ?? ???: 8bitrnrn " .
  145. $message_body . "rn";
  146. // ?? ??
  147. $dateiname = $this->datei;
  148. // ??? ??? ??
  149. $ dateigroesse = filesize ($dateiname);
  150. // ??? ??? ??
  151. $f = fopen ($dateiname, "r");
  152. // ????? ??
  153. $attached_file = fread($f, $dateigroesse);
  154. // ?? ??? ??
  155. fclose($f);
  156. // ?? ?? ???
  157. $attachment = Chunk_split(base64_encode ($attached_file));
  158. // ?? ?? ?? ??
  159. $header .=
  160. "--" . $msep . "rn" .
  161. "??? ??: application/zip ; name='Backup'rn " .
  162. "Content-Transfer-Encoding: base64rn" .
  163. "Content-Disposition: filename='Backup.zip'rn" .
  164. "Content-Description: Mysql Datenbank Backup im Anhangrnrn" .
  165. $attachment . "rn";
  166. // ?? ?? ?? ? ? ???? ??
  167. $header .= "--$msep--";
  168. // ??? ??
  169. $subject = "?????? ??";
  170. //???? ???? PHP ??? ????? ???^^
  171. if(mail($to, $subject, '', $ header) == FALSE)
  172. {
  173. die("???? ?? ? ????. ??? ??? ?????.");
  174. }
  175. echo "

    Email ????? ???????< ;/p>";

  176. }
  177. }
  178. /**
  179. * ?????? ??? ?? ???? ???? ??? ??? ????? ?????.
  180. * @return
  181. */
  182. ??? ?? createZIP()
  183. {
  184. // ?? ??? ???? ???
  185. chmod($this->config ['folder'], 0777);
  186. // ?? ??? ??
  187. $zip = new ZipArchive();
  188. // ?? ??? ?? ?? ??
  189. $this->datei = $this->config['folder'].$this->config['mysql'][3]."_"
  190. .date("j_F_Y_g_i_a").".zip";
  191. // ??? ???? ? ? ??? ??
  192. if ($zip->open($this->datei, ZIPARCHIVE::CREATE)!==TRUE) {
  193. exit("Cannot open <".$this->datei.">n");
  194. }
  195. // ??? ???? ??? ???? ????
  196. $zip->addFromString( " dump.sql", $this->dump);
  197. // ??? ???? ????
  198. $zip->close();
  199. // ??? ???? ?????? ??
  200. if(!file_exists($this->datei))
  201. {
  202. die("??? ???? ??? ? ????.");
  203. }
  204. echo "

    < ; small>?????? ?? ?? ???? ????? ???????

    ";
  205. }
  206. /**
  207. * mysql dump函數(shù)
  208. * @param object $dump
  209. * @return
  210. */
  211. ??? ?? createDUMP($dump)
  212. {
  213. $date = date("F j, Y, g:i a");
  214. $header = << -- SQL ??
  215. --
  216. -- ???: {$_SERVER['HTTP_HOST']}
  217. -- Erstellungszeit: {$date}
  218. --
  219. -- Datenbank: `{$this->config ['mysql'][3]}`
  220. --
  221. ------------------ -- ----------------
  222. HEADER;
  223. foreach($dump AS $name = > $value)
  224. {
  225. $sql .= $name.$value;
  226. }
  227. $this->dump = $header.$sql;
  228. }
  229. /**
  230. * ??? ??? ??? ?? ????? ?? ??
  231. * @return
  232. */
  233. ?? ?? outputForm()
  234. {
  235. // ?? ??
  236. $result = mysql_list_tables($this->config['mysql'][3 ]) ;
  237. $buffer = '
  238. ??? ??? ???? ?????


  239. ';
  240. echo $buffer;
  241. }
  242. }
  243. ?>
?? ??


? ????? ??
? ?? ??? ????? ???? ??? ??????, ???? ?????? ????. ? ???? ?? ???? ?? ??? ?? ????. ???? ??? ???? ???? ??? ?? admin@php.cn?? ?????.

? AI ??

Undresser.AI Undress

Undresser.AI Undress

???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover

AI Clothes Remover

???? ?? ???? ??? AI ?????.

Video Face Swap

Video Face Swap

??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

???

??? ??

???++7.3.1

???++7.3.1

???? ?? ?? ?? ???

SublimeText3 ??? ??

SublimeText3 ??? ??

??? ??, ???? ?? ????.

???? 13.0.1 ???

???? 13.0.1 ???

??? PHP ?? ?? ??

???? CS6

???? CS6

??? ? ?? ??

SublimeText3 Mac ??

SublimeText3 Mac ??

? ??? ?? ?? ?????(SublimeText3)

???

??? ??

??? ????
1601
29
PHP ????
1502
276
???
PHP ?? ??? ??????? PHP ?? ??? ??????? Jul 17, 2025 am 04:16 AM

PHP ?? ??? ?? ???? ?? ? ????? ??? ?????. 1. ?? ??? ??? ??? ??? ? ? ??? ??? ??? ?? ?? ??? ???? ???????. 2. ?? ??? ???? ???? ? ?? ????? ?? ?? ?? ??? ?????. 3. $ _get ? $ _post? ?? Hyperglobal ??? ?? ???? ?? ??? ? ??? ??? ??????? ???????. 4. ?? ?? ?? ???? ?? ?? ?? ??? ?????? ?? ??? ??? ?? ??? ???????. ??? ??? ????? ??? ??? ?? ???? ????? ? ??? ? ? ????.

PHP?? ?? ???? ???? ???? ??? ?????? PHP?? ?? ???? ???? ???? ??? ?????? Jul 08, 2025 am 02:37 AM

PHP ?? ???? ???? ????? ?? ? ??? ???? ?? ?? ? ??? ???? ?? ??? ?????? ??? ??? ? ? ???????. 1. ??? ?? CSRF? ???? ?? ??? ??? ???? ?????? ??? ???? FINFO_FILE? ?? ?? MIME ??? ?????. 2. ??? ??? ??? ???? ??? ?? ??? ?? ? WEB ????? ??? ???? ??????. 3. PHP ?? ??? ?? ? ?? ???? NGINX/APACHE? ??? ????? ?? ???? ?????. 4. GD ?????? ??? ? ?? ???? ??? ?? ??? ?? ????.

PHP?? ?? ?? PHP?? ?? ?? Jul 18, 2025 am 04:57 AM

PHP ?? ???? ? ?? ???? ??? ????. 1. // ?? #? ???? ? ?? ??? ???? // ???? ?? ????. 2. ?? /.../ ?? ?? ?? ??? ????? ?? ? ?? ??? ?? ? ? ????. 3. ?? ?? ?? / if () {} /? ?? ?? ??? ????? ??? ?? ?? ?? ??? ???? ????? ???? ??? ?? ???? ???? ??? ? ??? ??????.

PHP ?? ?? ? PHP ?? ?? ? Jul 18, 2025 am 04:51 AM

PHP ??? ???? ??? ??? ??? ????? ????. ??? ????? ?? ???? ??? "?? ? ?"??? "?"? ???????. 1. ??? ? ??? ??? DocBlock (/*/)? ?? ?? ??? ???? ??? ? ?? ???? ??????. 2. JS ??? ???? ?? ???? ??? ?? ??? ??? ?????. 3. ??? ?? ?? ?? ??? ???? ????? ????? ???? ?? ????? ???? ? ??????. 4. Todo ? Fixme? ????? ???? ? ? ??? ??? ???? ?? ?? ? ??? ???????. ??? ???? ?? ??? ??? ?? ?? ?? ???? ???? ? ????.

PHP?? ???? ??? ?????? PHP?? ???? ??? ?????? Jul 11, 2025 am 03:12 AM

Ageneratorinphpisamemory- ???? Way-Erate-Overgedatasetsetsbaluesoneatimeatimeatimeatimallatonce.1.generatorsuseTheyieldKeywordTocroadtOpvaluesondemand, RetingMemoryUsage.2

?? PHP : ??? ??? ?? PHP : ??? ??? Jul 18, 2025 am 04:54 AM

tolearnpheffectical, startBysetTupaloCalserErverEnmentUsingToolslikexamppandacodeeditor -likevscode.1) installxamppforapache, mysql, andphp.2) useacodeeditorforsyntaxsupport.3)) 3) testimplephpfile.next, withpluclucincludechlucincluclucludechluclucled

PHP?? ??? ? ???? ??? ????? ?? PHP?? ??? ? ???? ??? ????? ?? Jul 12, 2025 am 03:15 AM

PHP??? ???? ??? ?? ?? ????? ???? ??? ?? ??? ??? ?? ? ??? ??? ???? ?????. ???? 0?? ???? ?? ??? ???? ? ?? ???? ?? ?? ? ? ????. MB_SUBSTR? ?? ??? ??? ???????. ? : $ str = "hello"; echo $ str [0]; ?? H; ??? MB_SUBSTR ($ str, 1,1)? ?? ??? ??? ??? ??????. ?? ???????? ???? ??? ???? ?? ???? ?? ?? ???? ?????? ??? ????? ?? ??? ?? ??? ???? ???? ?? ????.

?? PHP ?? ??? ?? PHP ?? ??? Jul 18, 2025 am 04:52 AM

toinstallphpquickly, usexampponwindowsorhomebrewonmacos.1. ??, downloadandinstallxAmpp, selectComponents, startApache ? placefilesinhtdocs.2

See all articles