It is so miserable if you found your old PHP modules serialized data corrupted and there is __NO__ backup file existed.
e.g. "Menalto Gallery" version-1/2 PHOTOS.DAT or ALBUMS.DAT corrupted, yet none sane backup serialized file remained.
The following tools may __SOMETIMES__ help to repair the broken serialized data, but remember NOT-always.
1. http://www.thecodify.com/php/repair-a-serialized-array/
2. http://shauninman.com/archive/2008/01/08/recovering_truncated_php_serialized_arrays
3. http://stackoverflow.com/questions/3148712/regex-code-to-fix-corrupt-serialized-php-data
4. http://stackoverflow.com/questions/8113542/making-a-script-that-can-recover-a-corrupt-serialized-string-in-php
No matter you can fix it or not,
TRY __not__ to store data in serialized format
as possible as you can, especially when the data will be with R+W transactions because it is usually hard to fix even manually by human-parser.
_
(2,153 views)
© Vovo2000.com Mobile Version 小哈手機版 2024