tools:db:dump
Differences
This shows you the differences between two versions of the page.
| tools:db:dump [2019/01/12 17:53] โ external edit 127.0.0.1 | tools:db:dump [2020/01/01 00:03] (current) โ removed arvid | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== FP DB Dump ====== | ||
| - | The following script does not issue any kind of conversion, but it just **dumps** on video useful informations about your FP DB. | ||
| - | |||
| - | This is useful before you run [[: | ||
| - | |||
| - | ===== Installing and using ===== | ||
| - | |||
| - | - Copy the code in a file named '' | ||
| - | - Please remember to **delete** this file once you don't need it anymore. | ||
| - | |||
| - | ===== dump.php ===== | ||
| - | |||
| - | <file php dump.php> | ||
| - | <?php | ||
| - | |||
| - | header(' | ||
| - | |||
| - | require_once(' | ||
| - | require_once(INCLUDES_DIR.' | ||
| - | | ||
| - | class dump extends fs_filelister { | ||
| - | | ||
| - | var $_directory = CONTENT_DIR; | ||
| - | | ||
| - | |||
| - | $p=" | ||
| - | |||
| - | echo substr(sprintf(' | ||
| - | |||
| - | if (is_dir($p)) { | ||
| - | echo " | ||
| - | return 1; | ||
| - | } else { | ||
| - | $s = io_load_file($p); | ||
| - | |||
| - | if ((strpos( $p, ' | ||
| - | echo " [ FOUND GZ ] "; | ||
| - | $s = gzinflate(substr($s, | ||
| - | } | ||
| - | |||
| - | |||
| - | if ((strpos($f, | ||
| - | echo " [ VERY OLD FORMAT ] "; | ||
| - | } | ||
| - | |||
| - | if (strpos($s, ' | ||
| - | echo " [ relatedlink INVALID KEY ] "; | ||
| - | if (strpos($s, ' | ||
| - | echo " [ BLANK KEY, dumping ] \n"; | ||
| - | echo wordwrap($s, | ||
| - | echo " | ||
| - | } | ||
| - | |||
| - | |||
| - | } | ||
| - | |||
| - | echo " | ||
| - | | ||
| - | } | ||
| - | | ||
| - | } | ||
| - | |||
| - | echo " | ||
| - | echo " | ||
| - | |||
| - | |||
| - | $o =& new dump; | ||
| - | echo " | ||
| - | |||
| - | ?> | ||
| - | </ | ||
tools/db/dump.1547312012.txt.gz ยท Last modified: by 127.0.0.1
