Links

Interview Questions - PHP Interview Questions


There are three HTTP headers included in the response:

Expires: Thu, 19 Nov 1981 08:52:00 GMT


If you store a session in a database you have several advantages:

@ Improving the security because on many hosting packages (shared host)

you can achieve this using curl in php

see the example below.

function curl_get_con_url($url, $user_agent = '', $referer = '') {

1. Do not trust user input.
2. Validate user input on the server side.
3. Do not use user input directly in your MySQL queries.

# Use ip2long() and long2ip() to store the IP adresses as Integers instead of storing them as strings, which will reduce the space from 15 bytes to 4 bytes.