Programming ↓ View more from this category

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 login using Facebook php sdk

Facebook App Settings
In this article i’m going to go in a little detail and show you how to create a very simple Facebook login script that you can then use in your own website. Its pretty straight[...]

Security risk using register_globals

php code
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 [...]

How to change php timezone on your se...

Timezone map
Normally when using a shared hosting service, the server you are being hosted on has a different timezone set. So your scripts may be displaying a different time than what you [...]

How to fix mysql server has gone away...

How to fix mysql server has gone away error
Today I thought about right something about this particular error which pops up in certain specific cases Mysql server has gone away I&[...]

Servers ↓ View more from this category

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 (o[...]

How to change php timezone on your se...

Timezone map
Normally when using a shared hosting service, the server you are being hosted on has a different timezone set. So your scripts may be displaying a different time than what you [...]

How to set apache server status using...

Apache web server
What is apache server status? Normally only server administrators would have access to this section, they would look at this specific page to lookup more information on [...]

File backup script using cronjob

backup folder
Just before the New Years a visitor was inquiring about how can he backup his account files, not just to [...]

How to install haproxy as a reverse p...

haproxy load balancer
This article was actually scheduled for some time now, I don’t really know why I left it in my draft here for so much time. I finally got the time to test and install hap[...]

Site optimization ↓ View more from this category

Improve website performance with Cloudflare

Cloudflare CDN
Improve website performance with Cloudflare Its been a while since my last article on website optimization, the reason for this is because I really haven’t made much changes on my site since long ago. Recently however I switched back to Cloudflare, thought of giving them a test again and it lo[...]

Fix opencart loading very slow

opencart logo
Its been awhile since I wrote a site optimization tip, maybe the reason why is that I’m probably out of ideas of what to write about. Even now, I had a client that was using OpenCar[...]

New adsense asynchronous option out o...

google
For a long time Google has worked hard and making a lot of changes to their applications, in September and now currently October, appears to be the months with the most chang[...]

Image optimization within a website p...

image scale optimization
Welcome back to another article about website optimizations, in this article I thought of writing something about image optimization (again). In my other articles I’ve tol[...]

Mysql server optimization for InnoDB ...

Mysql performance
In my other articles I showed you [...]

Tutorials ↓ View more from this category

Symfony mapped entities error while generating getters and setters

snippets
Symfony mapped entities error while generating getters and setters If you ever used Symfony php framework, and you wanted to generate through command line the setters and getters for your entity after you defined everything in your entities files, and you got an error like this: [crayon-5357b9bda6e0[...]

How to set JAVA_HOME in your in your ...

java
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 wou[...]

How to install open source video driv...

Ubuntu logo
In my earlier article I wrote about [...]

How to install video proprietary driv...

Ubuntu logo
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 [...]

How to install GIT on windows, Mac OS...

github
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 v[...]

Snippets ↓ View more from this category

Symfony mapped entities error while generating getters and setters

snippets
Symfony mapped entities error while generating getters and setters If you ever used Symfony php framework, and you wanted to generate through command line the setters and getters for your entity after you defined everything in your entities files, and you got an error like this: [crayon-5357b9bda6e0[...]

The controller for URI is not callabl...

snippets
This is a very common error for symfony starters, and it happened to me also when I first tried the framework, so you have to follow two steps in order to debug this:[...]

How to redirect URL in Javascript or ...

snippets
I will present some ways to redirect the user to another page from the client side using only plain javascript. 1) Using window.location.href you obtain a similar beh[...]

Change value of selectbox in Zurb Fou...

snippets
Some of us tried to change or will have to change via javascript a select-box that is generated from the custom forms of [...]

How to invoke dynamically a class met...

snippets
Today will talk about calling a method from inside class, however you are in the situation of calling a method dynamically in a loop, for each element of an array. To do[...]
Request an article ←