之前在寫Picasa2Wordpress的時候,測試的時候,遇到一個詭異的問題,在我有權限能access的機器們上面跑,就是有一台跑不起來,後來查了一下apache2的log才發現,原來是php suhosin module的問題,預設最大的POST及GET變數名稱最大只能夠是64字元,但是Picasa POST出去的卻遠超過,所以就被檔下來了。
解決方法很簡單,編輯/etc/php5/apache2/conf.d/suhosin.ini,加上下面這三行即可:
suhosin.request.max_varname_length=128
suhosin.get.max_name_length=128
suhosin.post.max_name_length=128
搞定收工。
[English] *中文說明在本頁下方
Picasa is a handy and cross-platform photo management program developed by Google. Identically, Wordpress is a well-known open-source blog system. Both of them are used by many users in the world. If there is a method that could make them work together will be awesome. Unfortunately, I can’t find any solution. So I decided to write one to make it possible to upload photos from Picasa to Wordpress’s media library directly. Continue reading ‘Picasa2Wordpress v0.1′
近期迴響