I’m calling this part 1, because I hope to follow it up at some point, although… who knows!
I wanted to be able to upload my photos from my N95 directly to my website, and notice that S60 phones appear to have an option to upload to Flickr and Vox using the ‘online services’ system, so I figured adding my own shouldn’t be too hard. After a bit of googling, I found this:
Having the spec made it pretty trivial. My examples below are using symfony, but are really very basic, so you should be able to figure it out. At some point, I intent to make a class to handle this, and maybe release it. Currently, the data is stored in a database ‘as-is’, but processing it wuold be trivial
If you don’t understand how this works, read the spec. If you still don’t understand, don’t contact me about it unless you’re willing to pay for implementation 😉
getResponse()->setStatusCode(201); $stream = fopen("php://input", "r"); $data = stream_get_contents($stream); fclose($stream); $n = new Nokia(); $n->body = $data; $n->save(); } }
Test moo 2004-11-16T13:04:04Z testmoo