If you need to be able to write to a folder with PHP but you do not want to have to use 777 permissions then instead you have the option to use access control lists.
This simple command will allow you to give permissions to Apache only, whilst keeping the standard permissions secure (eg 770)
PLAIN [...]
Archive: linux
If you need to check which files (eg PHP files for example) have been modified within the last few days, you can run this quick command.
PLAIN TEXT
CODE:
find . -mtime -36 -iname "*.php" -fprint modded.txt
This will generate a list and save it to a file called modded.txt.
More Reading:Ubuntu Bulk Find And Replace GUI – RegexxerCron [...]
Linux has a great little utility called split, which can take a file and split it into chunks of whatever size you want, eg 100 line chunks.
However, for CSV files etc, each chunk generally needs to have the header row in there. Unfortunately the split command doesn't have an option for that. However with a [...]
If you have some cron jobs set up and you are finding large amounts of files saved in your home directory (or root) then perhaps you have the same issue I had.
I was using wget to call on some PHP scripts to run periodically. wget will do what it says on the tin and save [...]
If you are struggling to connect to your IMAP mailboxes but other machines on the same network are working fine, then chances are you are hitting the rather restrictive max connections per IP setting that is the default with Courier IMAP and Plesk. As standard it is limited to only 4 connections per IP. For [...]
I have now decided to totally abandon my windows installation and use Linux for everything. I was pretty much using Linux for everything already but there were a few apps that I still used windows for or simply hadn't got around to trying out on Linux.
I have a projector hooked up for watching movies. I [...]
If you ever get Grub Error 21 when trying to boot your Linux laptop or notebook then this post is for you.
Grub Error 21 means that it cannot find the hard disk. On a desktop machine this probably means that you need to fix Grub itself. Just google for Grub error 21 or supergrub.
However on [...]
Sometimes it can be really hard to figure out exactly which file a chunk of code is coming from. At times like this the command line tool grep is immensely useful.
This snippet of code will search all php files within a specified folder. It will check through all files and sub folders for the string [...]
If you create a symlink via SSH then chances are you are logged in as the root user and the symlink will be created as root. Usually though you will want to the symlink to belong to another owner:group.
If you try to use chown it will silently fail to change the ownership of the symlink, [...]
Check this out - chromium (the open source backbone of Google Chrome) running on Linux, courtesy of the nice people at Code Weavers
More...
Arora, a refreshing new Qt/WebKit browser | Kev009.com
Avant Browser 11.7 Build 22 winAddons.com
Open Browser Window & CRP Plugins Minor Updates | Ajay - On the ...
Google Chrome 2.0.167.0 Beta/ Google Chrome 1.0.154.48 | [...]