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

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

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.

How to Fix Header Already Sent Error in PHP

Helping out on forums with PHP problems, perhaps the main issue that I come across is people posting how to fix "Warning: Cannot modify header information - headers already sent by". In light of that issue I decided to try and put yet another blog / how to document out there to fix this error, hopefully people come across and find the information I have provided useful.

Read the full blog

↑ BACK TO THE TOP ↑