I´m working on websocket scripts in PHP and JS and have issue with saving a file (img) Sending from JS: Saving in PHP It saves the file, but it is corrupted, or wrongly encoded… The uploaded picture is slightly smaller (few bytes) and there is nothing readable in hexeditor (while in original I can read header and so on) What
Tag: save
Phalcon ORM – integer field id is string after save
I’m using Phalcon for my current project and i’m seeing some strange behaviour with the type casting. I have this model class Customer extends Model { protected $id; protected $name; } In …