Skip to main content

Posts

Showing posts from January, 2012

Difference between is_file and file_exists

If you want to know that the argument supplied is a file or not use is_file() file_exists() will take both file and directory as input and return true if they exists. So, unless you specifically want to check if the argument passed is a file use is_file otherwise use file_exists()

All your Imagick Install Problem!!

Hello, So you are having problem installing ImageMagick! Find the errors below and the solution to resolve it, right next to it. First of all if you are installing the software after December 2011(offcourse ur!!), always always install it from the source stop using the stupid useless(just 4r this case) yum command. I'll show you how to install the software from the source: sudo yum groupinstall "Development Tools" ( the above command will install the following tools MAKE SURE TO USE IT WITH CAUTION bison,byacc,cscope,ctags,cvs,diffstat,doxygen,flex,gcc,gcc-c++,gcc-gfortran,gettext,git,indent,intltool,libtool,patch,patchutils,rcs,redhat-rpm-config,rpm-build,subversion,swig,systemtap) sudo yum install rpmdevtool libtool-ltdl-devel yum install freetype-devel ghostscript-devel libwmf-devel jasper-devel lcms-devel bzip2-devel librsvg2 librsvg2-devel liblpr-1 liblqr-1-devel libtool-ltdl-devel autotrace-devel yum -y install gcc automake autoconf lib