Servage Magazine

Information about YOUR hosting company – where we give you a clear picture of what we think and do!

Archive for August, 2012

Using JSON data from PHP can be tricky

Sunday, August 5th, 2012 by Servage
AJAX is a common thing, used on almost every website today. Mainly it's describing the concept of communicating with the server in the background, or without updating the page, to send and get data. This enables you to build nice, modern and response sites and apps. Many AJAX calls work with JSON as the preferred data format. JSON is like a JavaScript object, which makes it very convenient to work with. Also most languages easily convert from own datatypes to JSON. In PHP there is the possibility to json_encode() and json_decode() which transforms a PHP variable (array, object, anything except a resource) into a JSON string, which can be used by the ...

Secure password storage with PHP and MySQL

Thursday, August 2nd, 2012 by Servage
Every web developer knows what the user data is the most important data he administrates. The user data is the base for logins, authenticating sessions to be a specific person, thus authorizing them to perform certain actions. If the authenticated session isn't by the person you expect, then you risk authorizing wrong people to actions you'd never want them to do. You could argue that this is usually the users problem, but actually it is yours just as much. The inconvenience, problems, bad reviews, or whatever might be the result of compromised security, is something you really don't want. It could break your business. Therefore having a proper and secure ...