Articles tagged PHP

sha1, md5, other cryptography and How to

  • Reading time:24 mins read

Today we will talk about cryptography. As we know, cryptography – the set of methods to ensure confidentiality and authenticity of information. Cryptography is even science. Encryption can be reversible (when we can get the source text) and irreversible (when we can can`t get the source text). Today we will talk about using an irreversible encryption methods (like md5, sha, haval, ripemd and others) in web development.

Irreversible encryption is most often used to encrypt passwords. All in order not to store passwords as open text. Thus even if your database is hacked – you can be sure that the attacker does not receive a single password. How are we going to check – whether the user enters a password – simply, we will encrypt the entered data too. Of corse, passwords are not the only where encryption is used. We also can encrypt text, files, and after transferring – check for hash sum of sent data. This is just examples of using.

(more…)

How to make a PHP Guestbook with Math Captcha Security

  • Reading time:190 mins read

PHP Guestbook with using math captcha

Today I will tell you how to create your own guestbook with spam protection system – math captcha. This will and easy for your members and also good new protection from bots. In our guestbook we will use mySQL to store records.

(more…)

Easily Interact between Server and Client using these jQuery with Ajax Snippets

  • Reading time:68 mins read

Ajax with jQuery – several interactive samples
Ajax – this is group of technologies using in web development to create interactive applications. Ajax is client-server technology which allow to web page to retrieve data asynchronously from server without reloading page. All this allow to achieve really nice and good results. jQuery library will help us greatly with it. All just because it have all methods to work with Ajax.

(more…)

How to Post on Twitter from your Website using OAuth

  • Reading time:216 mins read

Twitter crossposter with OAuth

Recently (seems in august of 2010) Twitter was changed, and now it doesn’t support basic authentication (as usual via CURL), all authentication is done via OAuth.В  In this article I made tutorial how to create crossposter to Twitter (using Twitter OAuth).

(more…)

Creating Ajax based file uploaders

  • Reading time:163 mins read

I got one interesting theme. How to upload files without refreshing whole page during submitting. Hope this will interesting to you. Lets check 2 methods – using ordinary iframes and external library. Also I will using jQuery in work too (I like it).

(more…)

How to create captcha in PHP using GD library

  • Reading time:189 mins read

How to create captcha in PHP using GD library

Today I will tell you about very important thing – captcha protection. Usually this is very important to prevent automated sign-ups in your registration forms, comment spam in blogs and guestbooks, or another brute force attacks. I will give sample how to draw protection image using our hands.

(more…)

Cropping images in runtime using Jcrop (jQuery)

  • Reading time:223 mins read

Today we use jcrop api. During browsing the Internet I noticed one new good plugin which we can use to work with images. This is JCrop plugin, it can help us to perform different effect with images (as example highlight some objects using animation or zooming images. But main purpose is cropping.

(more…)

Importing multiple RSS feeds – using newsWidget (jQuery)

  • Reading time:210 mins read

Importing multiple RSS feeds – using newsWidget (jQuery)

Some times ago I told how to display rss feed at our website. But some times ago my friend ask me how to display in single box feeds from multiple sources. I decided to investigate it and located NewsWidget library. Lets check its possibilities.

(more…)

How to Easily display Digg posts via XSLT using Digg Api

  • Reading time:218 mins read

How to Easily display Digg posts via XSLT using Digg Api

As we know, Digg become very popular last time, so why not use it for our purposes? I decided to investigate Digg a little and learn how possible to draw Digg posts at my own website. And I make own unique method. Hope you will like it.
Reading http://digg.com/api/docs/1.0/groups/ I find necessary ways to get posts XML results. Just check story.getPopular method. Yes, this is usual to use different reparse methods in PHP, but lets learn something new like XSLT (Extensible Stylesheet Language Transformations).

(more…)

How to Easily Make Your own RSS Feed

  • Reading time:128 mins read

How to Easily Make your own RSS feed using PHP + SQL

RSS Feed is an important part of a website/blog to attract and bring back users and make them permanent readers. Blogs like wordpress have built in rss reader, but if your website doesn’t have a rss system this tutorial is just the thing you need.В  As we know, RSS feeds usually using to transfer some news to readers. Today I will tell you how to create such feeds and fill it with information from database.

(more…)