Archive for July, 2008

Upgraded to WordPress 2.6

Thursday, July 17th, 2008

Just finished upgrading to WordPress 2.6. Supposed to be a very smooth process but ran into problem with something like “Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 37890 bytes) in …“.

Tried for sometimes starting with adding php.ini, .htaccess to adding ini_set inside the script still didn’t work (my stupidipity :( ). Finally last attempt tried to get some help from hosting technical support and it didn’t take that long for the guy to fix it. The fix was by increasing the memory limit by editing php.ini:

[PHP]
memory_limit = 32M

So seem that creating php.ini with only this one line of memory_limit=”32M” like what I did before didn’t solve the issue, even when I called phpinfo() it showed me that the memory limit had increased to 32 MB :(

Multiple File Upload with Flex and PHP

Thursday, July 17th, 2008

Flex File Upload

I needed to create a FLEX file uploader with PHP on the server side. So I googled “flex upload”, found this site 9 Flex File Upload Examples Visited and found what I was exactly looking for on the first link (Flex File Upload Component).

So, I grabbed and did play a little bit by adding this stuff:

  • Filtering for the file type
  • Limiting the max file size
  • Modifying the progress bar in the bottom to show overall progress status instead of individual upload status
  • Add progress bar on individual file upload

Anyway, try the demo by clicking the screenshot above and if you like it feel free to use it (as usual, do right click then view source will get you to the source or just click here).
Just don’t forget to include the credit for the guys at weblog.cahlan.com as the most work were done by them :)

Update: Sun, 08.03.2008 – modified the upload.php to save the uploaded images in the database. I need it for collecting sample pictures of my other demo. If you want to delete your upload, go here and you will find it under “Not Categorized” category for the successful upload. Drag and drop your picture(s) to the bar at the buttom of the screen to delete your uploaded picture(s).

First Post

Friday, July 4th, 2008

And here i am, finally decided to install a blogger software in my empty website. Searched for “PHP Blog” in google and ended up with WordPress. So, here it is, my “Hello World” post :)