Font Size

Profile

Layout

Direction

Menu Style

Cpanel

PHP in examples

How many people are there on the site ?

Why is identifying users by IP a bad method? Let's think:

1. Some ISPs require the use of proxy servers from their clients, and taking this fact into consideration what will we get in the REMOTE_ADDR variable? That's right: the proxy server address! And if several users having the same provider enter the website the script will still think that it is one and the same user.

2. Some ISPs that provide access via cable networks, occasionally change the IP-addresses of users.

Unfortunately when Tim Berners Lee in 1991 was developing  the HTTP protocol, he wanted it to be very fast, thus he deleted all information about the mode and thus he supplied Web developers with more work.

Обновлено 23.12.2010 21:17

Page caching with in PHP

Hello dear colleagues and other readers. You are reading this article and it means that we both are interested in the pages caching to accelerate their loading time. Many people who start learning  web programming languages tend to create something unique and provide it for the public use in the Internet as soon as possible, however, the majority of them do not think about the functionality of their applications. Therefore, this article aims at helping you increase your programs functionality by increasing the speed of loading pages.

Обновлено 23.12.2010 21:21

Html forms

Often the Web - sites you can find pages hosted on their HTML - forms. Web form - easy way to receive information from your visitors. An example of this - guest book - which provides feedback from visitors and developers of the site. Shape is as convenient for the developers site for the development of CMS, which keeps the main feature of the site - relevance. This article focuses on the basics of creating HTML-forms, their processing and data transmission method of the screens in the PHP-script.
1) Create a simple form

Tags <form> and </ form> define the beginning and end of the form. Rookie form <form> tag contains two attributes: action and method. The action attribute contains the URL of the script, which must be called to handle the scenario. Method attribute tells the browser what type of HTTP request should be used to send the form; possible values by POST or GET.

Note

Обновлено 16.11.2010 11:07

Sessions in php

Introduction

Session - it's actually very simple. It is only necessary to understand what they do and how to construct. First answer the first question.
You probably know that the web server does not support a permanent connection to the client, and each request is treated as new, without regard to the previous ones.

That is, can not be traced calls from the same visitor, nor for him to maintain variables between scans of individual pages. That is to solve these two problems were invented session.
Actually, the session, if in a nutshell - a mechanism to uniquely identify your browser and the browser was created for this file on the server, which stores session variables.

Detail to paint the need for such a mechanism, I will not. It is cases such as a shopping cart in the online shop, authorization, and as, and not entirely trivial problems, such as the protection of interactive areas of this website from spam.

Обновлено 16.11.2010 11:07

Кто на сайте

Сейчас 1 гость онлайн

Партнеры

You are here