Pastebin like Service: Paste.ee

Dealing with code a lot and online help I tend to use Pastebin like services all the time. I have recently stumbled upon a rare gem called Paste.ee. Paste.ee seems to allow a lot of control over your pastes (including encryption) as well as API setup without any type of monetary value or advertising (unlike the alternative, pastebin). Paste.ee is one of those service you are glad to stumble upon and hope that they stick to their ropes for the rest of their life span. With a very clean and simple to use interface, I can see paste.ee going a long ways, as long as they keep regular updates to improve the system and listen to the users feedback.… Read More

Tricks to a Simple and Secure Contact Form using PHP

A day does not go by it seems that someone is asking how to create a simple contact form in PHP. The problem I tend to find is that most of the tutorials online show bad programming practice, such as using the @ error suppressor or not validating / checking the data passed into the form. I decided to write up a few of my tricks on how to do a proper PHP Secure Contact form and attempt to explain why. As always, I welcome comments / suggestions in the remarks. I have decided to omit the Captcha, as I feel Captcha is just broken, so if you want to prevent spam, you will need to research other methods, like Honey Pots.… Read More

Varnish is Running out of Control!

A slug walking across a keyboardMy servers now a days run Varnish simply for the speed. On my main site Varnish was getting out of control with the RAM / Memory usage. Varnish would slowly creep up and eat all the memory, even though I was trying to hack Varnish to only use 128MB of ram, especially since the site is hosted on a lowendbox by Frantech (Buyvm.net). The answer, which I am not really sure WHY it works, but inside of vcl_fetch in the /etc/varnish/*.vcl file, I had set beresp.grace to be 30M, I tried this with 2M as well, but ultimately I took out the grace period setting and now my box is running Varnish with Lighttpd and PHP-FPM getting around 15k-30k unique hits a day and not going over 156MB of RAM usage.… Read More

Hacking NGINX and PHP-FPM Running Debian

A guy trying to get NGINX / PHP-FPM working

Keeping logs is a part of system administration. For me, I keep my logs of items I have installed in my articles. This way I always have the instructions to reference when I need to look back and do other installs. Today I am writing about how to setup NGINX that uses PHP-FPM on Debian. This can be a faster alternative to FastCGI in that you set the number of instances it will always run and the max that PHP-FPM is allowed to run. PHP-FPM allows for more control making a PHP server lighter weight when the extra weight is not necessary.… Read More

How To: Join / Combine MP3’s for Free Using Linux and Cat

In reference to How To: Join / Combine MP3’s for Free on Windows, I decided to create a tutorial for combining / joining MP3s on Linux for Free as well. I will show you how to combine / join MP3's on Linux with the CAT command as well as provide a function in PHP to combine and join MP3's...

Read the full blog

Create Directory in PHP with User Input

Recently I had an inquiry about how I would go about creating a directory in a PHP script using a FORM with POST / GET data. Creating a Directory from a PHP script using PHP is not all that easy and should be done with caution, as you want to make sure that you validate the input and prevent un-wanted characters from being used to create a directory.

Read the full blog.

↑ BACK TO THE TOP ↑