neurofuzzy, flash game development, rich internet applications, free source code – *alt.neurotica.fuzzy*

neurofuzzy, flash game development, rich internet applications, free source code – *alt.neurotica.fuzzy*

4/24/2006

Safari, PHP, and File Uploads

Filed under: PHP — geoff @ 10:29 am

Okay, so I’ve searched the web high and low and have been unable to find a solution for found a solution for this problem. (There may be a solution at “experts exchange”, but I refuse to pay to see their “solution”.) I’ve got an image upload form on my site… a typical web form. It works fine in all browsers except Safari. In Safari, the upload quits immediately, and the form handler says nothing was submitted.

I think this is a problem with the way Safari submits multipart form data. PHP can’t handle it and pukes. I see a lot of posts out there about this… people are complaining that this doesn’t work, however I see nothing on Apple’s site, nor any actual solutions posted.

3/17/2006

Amazon S3 PHP Class

Filed under: PHP — geoff @ 1:57 am

I’m sure you’ve all heard about Amazon.com’s new Online Data Storage Service.  I just threw together a PHP 4 compatible class for working with the Amazon S3 web service.  It’s based on a proof of concept they had on their site, but it was cumbersome to use.  Hopefully this will make life easier for some of us who still use PHP.  It relies on the Crypt_HMAC and HTTP_Request PEAR libraries. 

Comments? Post them here.

UPDATE 3/17/06:  I neglected to add a note from Amazon regarding a bug in the HTTP_Request package.  There’s now a copy of the note in there with info on the fix.

2/21/2006

Treemap of NPR Story tags

Filed under: General,PHP — geoff @ 11:06 am

TreemapI’ve been working on my own treemap on reverbiage. It shows the popularity of NPR stories with particular keywords, shaded by recency. Green tiles use lame logic to determine proper names. The original idea is not mine, but I got the inspiration from here. How could I look at something like that and not try it myself?? It, like the rest of the site, is a work in progress.

The algorithm itself is very very simple. I’ll post some code soon, but here’s the gist of it:

  1. Take a list (array) of items as keys with their popularity as the value for each.
 

Powered by WordPress