Hi All,
I am using symfony1.1. In my app I am required to upload some image files through admin and store their content as blob in DB.
Here's how I am doing it,
1. Getting the fopen handle on the uploaded file.
2. Pass this to stream_get_contents($handle);
3. Store the content in as blob.
Everything works fine on WinXP, but on live server which runs on Linux, I get strange file name as "object id #5" for the file I uploaded which can't be found. I checked both configurations, they are same.
Please does anyone know whats happening.
Thanks.
Update: The problem is with the different versions of PHP as suggested by the comments, nothing to do with OS's. Thanks all.