Monthly Archives: February 2014

Remove html tags and malicious content in php

malicious

Remove html tags and malicious content in php Let’s say you have some data that are coming from the client side (a form submit, an ajax call, etc) and you want to be sure that you are not inserting in the database malformed data with html tags or other stuff. In the end you would need

How to set JAVA_HOME in your in your environment

java

How to set JAVA_HOME in your in your environment When installing some applications that would require to set JAVA_HOME path for your environment you would need in most cases to manually set the JAVA_HOME path as it would not be there automatically. Normally the error you get for this is:

Adding JAVA_HOME in your

How to save image from URL using PHP

snippets

How to save image from URL using PHP You have an image in a URL, something like “http://www.yourhowto.net/wp-content/uploads/2012/09/mysql-java-jdbc1.jpg“, and you want to save that image in your computer, but you want to obtain that directly from PHP. You can use 2 methods for this, one is using CURL and one using fopen directly. First method

How to install open source video drivers in Ubuntu

Ubuntu logo

How to install open source video drivers in Ubuntu In my earlier article I wrote about how to install the proprietary video drivers in ubuntu, however some of you will notice that not all video cards are supported. Especially ATI cards which usually have support for linux dropped quite early. With these cards you have

How to install video proprietary drivers in Ubuntu

Ubuntu logo

How to install video proprietary drivers in Ubuntu I recently had some driver issues with my laptop, specifically related to my video display driver. I wanted to install the original proprietary display drivers for my ATI 4670 mobile display adapter but soon after noticed that I had some issues with it. I’ll explain that in

How to install GIT on windows, Mac OS X and Linux

How to install GIT on windows, Mac OS X and Linux What’s GIT? What can you do with it? Well let’s say you have a team working on a project, you need to have some kind of code review or maintenance or even versions based on certain development steps or tasks taken? That is what

Security risk using register_globals

php code

Security risk using register_globals There’s a security risk involved when enabling in your server register_globals, not sure if any of you noticed but I just remembered this and thought I should shout it to you all just so you are more careful. I’m currently working on a little project, not sure what will come out of

How to install bind9 DNS server on debian

dns records

How to install bind9 DNS server on debian I’ve been wanting to write a tutorial about this for a long time now, this is also something I’ve learned the very first time I started playing with servers. In this article I’m going to show you how to install bind9 DNS server on debian (or ubuntu

Request an article ←