PHP fopen Reading a Remote File

You need to chech that allow_url_fopen is On or Off.

if (ini_get('allow_url_fopen') == '1') {
echo "allow_url_fopen = On";
} else {
echo "allow_url_fopen = Off";
}

If allow_url_fopen is Off, you should open php.ini and convert allow_url_fopen = Off to allow_url_fopen = On

How to clean log file

You need to clean log files (e.g /usr/local/apache/domlogs) with the following command.

> logfile

Don’t use rm command because it may cause writing problem.

If you wanna clean multiple files, you can use the following commnd.

truncate logfile --size 0

If you wanna clean all the log files, you can use the following command. We need to use *.* because the folders cause the error and break the command.

truncate *.* --size 0

PNG Image Optimization

You can use optipng for doing this and you should use the following commands because this is a command line image optimization.

1. yum install optipng

2. optipng [options] input.png

http://www.cyberciti.biz/faq/linux-unix-optimize-lossless-png-images-with-optipng-command/

Exif Data

cd <your download directory>
    gzip -dc Image-ExifTool-11.99.tar.gz | tar -xf -
    cd Image-ExifTool-11.99
perl Makefile.PL
    make test
    sudo make install

https://exiftool.org/install.html