I need help in a php script. Have spent half a day searching high and low but couldnt get anything work.
Basically, i want a sample php script, that can let me call from Flash, to save a bitmap data as a record into a mysql table!
Thanks…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As far as Flash is concerned, you need to turn your BitmapData object into a ByteArray
Look into Zend AMF or amfphp for communication with PHP, both will allow you to pass the ByteArray as a variable .
Zend Amf
Lee Brimelow | ZendAmf Video tutorial
As for the PHP script, as soon as you get the ByteArray variable in PHP, it’s a straightforward Mysql connection , only you need to save your data as a blob.
Store images in Mysql tutorial