linoxide

How to Enable and Disable PHP Safe Mode in Linux

The PHP safe mode is an attempt to solve the shared-server security problem. When safe mode is on, PHP checks to see if the owner of the current script matches the owner of the file to be operated on by a file function or its directory. For example: -rw-rw-r-- 1 sam sam 33 Jul 1 19:20 test.php -rw-r--r-- 1 root root 1116 May 26 18:01 /etc/passwd Running test.php: <?php readfile('/etc/passwd'); ?> results in this error when...

linoxide

How to Add Directory to $PATH Variable in Linux

The environment variables control the behavior of the shell. Environment variables are the variables that set the working environment of the shell. Some of the environment variables are USER, HOME, SHELL, PWD, SHELL, PS1, PS2, etc. The HOME variable contains the path of home directory of the user. Similarly, the other variables contain other values needed for the operation of the shell. This tutorial discusses an important shell...

sitepoint.com sitepoint.com

HTML5 & CSS3 for the Real World!

After more than five months of preparation, and countless weeks spent on research, writing, and editing by the wonderful authors and publishing team – we’re finally ready to unleash the awesomeness that is HTML5 & CSS3 for the Real World. As the newest book to be added to the prestigious SitePoint library, HTML5 & CSS3 for the Real World is what you’ve been waiting for. You might assume that the person writing...

linoxide

How to Zip and UnZip Files in Linux

Compression utilities compress files (borg and rar) and are similar in their functions and operations. Zip/unzip is one of the commands used in Linux to create compressed files and to extract. In modern Linux distros these utilities are installed by default. If any issues, you can install both these utilities from the shell prompt but you must be a root user to do so. On RedHat/CentOS based system # yum install zip unzip On...