首頁 美術繪圖 | 美術設計 | 熱門標籤 | 首選 | 首頁宣傳 | 近期作品 論壇: 發表 | 美術工作 | 美術比賽 | 展覽活動 | 美術相關 | 一般討論 | 美術同好 CG 討論 :: Photoshop | Painter | 3D 行動 | AMP

【 立即註冊 】 : 更改個人資料 : : 登入

會員名稱: 登入密碼: 保持登入

Fix Corrupted PHP Serialization Data

發表新主題 回覆主題 討論區 Windows, Linux, Perl, PHP, C/C++, Driver, Web 理論、應用、硬體、軟體

| 1頁, 共1
人氣點閱:2047 發表人
Fix Corrupted PHP Serialization Data 2012-10-17 16:50
/ / /

Fix Corrupted PHP Serialized Data

代碼:

PHP Notice:  unserialize(): Error at offset 8201 of 44790 bytes in /tmp/photos_dat_parse.php on line 4


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.




_
________________

美術插畫設計案子報價系統 v0.1 Beta
爪哇禾雀
Type



繪圖畫廊設計藝廊
攝影相簿留言板
最愛收藏分類標籤
暱稱: Type
註冊: 2002-11-30
發表: 11085
來自: vovo2000.com
V幣: 900977





資訊相關理論、技術、管理、應用、產品等
發表新主題 回覆主題