Flavio's blog - Part 14
 

Protect your website from hacker attacks: two effective tricks

Protect the site from attack?

If it is true that, today, has become relatively easy to open and operate a web, it is also true that many leave out the appearance “security“.

The result is a string of “You’ve been hacked”, lost passwords, corrupt database, waves of spam, or even worse, the injection of malicious code pages.

In addition to the usual tips, how to keep your own CMS like WordPress and the like, and use a long password and a user name different from the classic “admin”, some statistics …Read the rest »

HOWTO: Guestbook/comment-system in AJAX e PHP with a little bit of… Twitter

**ENGLISH VERSION CLICK HERE**

A few months ago I finally updated My Guestbook (See it in action), which was almost ten years old (2003!).

It was in HTML, you could not change anything but the font color, and it had a rather “old-fashioned style”.

What better idea than creating a new version, using the latest technologies?

Inspired by two great guides (Tutorialzine and 9Lessons), and adding new features, I created a new Guestbook that is gorgeous to see, thanks to shadings and rounded corners via CSS, and it allows to show a limited number of comments per time (9, in my case), so that the page won't be too heavy to load. …Read the rest »

HOWTO: Create a cache file in PHP

in webdesign, Web 2.0 & SEO | | 4 Comments » | Last modified:

In this site, especially in the home, There are some information boxes, automatically displaying the latest blog posts, The latest comments, latest video on Youtube, my last bike activities, and the like.

Each time these boxes are loaded, in theory, runs the code that allows to show that output. Indeed, to avoid enlarging the loading time and overloading the site, is more convenient to create files CACHE, that will allow us to keep the output already developed, for a certain number of hours to our pleasure.

So, for a limited period of time, will load the output without having to perform lengthy operations in PHP / JSON / XML, or whatever else will serve the purpose. …Read the rest »

PHP Interface for RunKeeper and Sportstracklive

A few days ago I finally dusted off the bicycle and, taking advantage of good weather, I wanted to make a long trip along the sea coastline.

Given that the odometer was out of service, I tried some app for Android that exploited the GPS to record the route, the speed, the altitude, and so on. Runkeeper immediately jumped to the eye: attractive graphics, opportunity of social sharing, Free App (even if improved).
Similar to Runkeeper, also Sports Track Live keeps track of your performance. Compared to the first, however, has a site less attractive, and a way better Android App (even if it's payware).

I installed the app, made my 35km, and at home I loaded my route on the website of RunKeeper.
However, nor RunKeeper Sportstracklive nor offer any chance to integrate the statistics of its run on your web site (while you can share it via Facebook or Twitter). Also, they don't offer an API to interact with their data. …Read the rest »

How I sped up by 300% the loading of web pages

Google Webmaster Tools has an interesting feature (EXPERIMENTAL FUNCTIONS section -> PERFORMANCE OF THE SITE), that allows you to monitor the loading time of your web site.

The system analyzes a few dozen random pages, and averages the loading times.

As shown in this graph by Tues Kiss Metrics, the percentage of users who decide to abandon your site, before it has finished loading, increases dramatically with each passing second.

Backgrounds bigger than 1MB, sounds (avoid background music at any cost!), too many pictures on one page, javascript too are among the most common causes of excessive loading a web page.

Without wasting further time, let's see the result, and then analyze how to get there: …Read the rest »