Change file permissions recursively using php

You often ran into a position where you need to deploy your script on hosting and you have only ftp access. Your web server configuration may need to have right permissions on files to execute them. Normally on linux servers directory permissions are set to 0755 and file permissions are 644, but if security is […]

Magento custom options files or images corrupt download

What is happening? Often store owners need to create custom options at product level to upload files/images, these file upload options appear on product detail page so customers can upload their files. For example there is a print site, customers pick the business card and want to upload their own design (front and back). For […]