When the phpbb forum is posted, the SQL statement is written to the text file

time:12-03-16 forum:PHPBB forum program, plug-in collection and modification
  Mainly because of space in foreign countries, access time is unstable, after the forum backup time to download the time.
so think of the previous Discuz6.0 forum post code backup code.
is in the post and reply, to record the update database data, create and write to a text file,
time (I basically once a day). Download this file with FTP, then delete the file on the server,
when you need to recover, such as space hanging out, unable to retrieve the backup file, import these backup SQL statements files in PHPMYADMIN, and try to restore the forum post.

[color=# 0000FF] to suggest that you first upload after the machine environment test is successful. Cover the file in the space. [/color]

open your forum directory /includes/functions_posting.php file

1 with Notepad, look up
[code]$make_global = false; [/code]
Bak_topic.txt.quot;.Quot; a.quot)) {
flock ($fd, LOCK_EX);
fseek ($fd, SEEK_END); Time, 0, 1, 0, 0, 0, 0,.Quot;.$data.#91;'post_id'.#93;..quot;'.quot;.$user-.gt; data.#91;'username'.#93;..quot;'.quot;.$user-.gt; dialectical; dialectical; dialectical; Quot; ','.quot;.$user-.gt; data.#91;'user_colour'.#93;..quot;''$subject', $current_time, $current_time, 0, 0, 0,'.quot;.$poll.#91;'poll_title'.#93;'poll_title'.#93;', 0, 0); Fclose ($fd);
}
/ / theme write to bak_topic.txt end [/code]
save the modified file.

2, let's test:
random post test, look at your forum directory is not a backup file?
bak_topic.txt

open to see, the inside of the SQL statements can be directly imported in phpMyAdmin.
  • 2
  • 3
  • 4
  • 5
  • 6

prev:2G memory bar 55 yuan next:no next
post comment
Notice



approved   Bazhong man built a small wooden bri...   The army flags the banner of the fla...   The 52 year old substitute teacher s...   These 3 kinds of fathers are easy to...   Do nuclear reactors learn calculus? ...
rand   The modification of the phpbb forum ...   PHPBB adds hidden tags to restore vi...   PHP framework, class library   Phpbb 3 display floor   Test backup function
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com