liz

This user hasn't shared any biographical information


Posts by liz

What are the useful fields of $_SERVER array in PHP

The following table describes useful fields in $_SERVER array in PHP.

Name Description PHP_SELF Returns the filename of the current script SERVER_PROTOCOL Name and revision of the information protocol ‘HTTP/1.0‘ or ‘HTTP/1.1′ REQUEST_METHOD Returns the request method used to access (GET/POST/PUT) REQUEST_TIME Returns the timestamp from the beginning DOCUMENT_ROOT Returns the root directory under which the current script is executing. This directory is based on server’s configuration. HTTP_REFERER Returns the page address that referred HTTP_USER_AGENT Returns the contents of user agent extracted from HTTP header. This information is typically used for identification of user’s browser and operating system. REMOTE_ADDR Returns the More >

How to include a CSS stylesheet in another style sheet – Use import url statement

You can use “import url(..)” statement to include a CSS file with in an another. For example, you can include another css file (file2.css) in a style sheet file file1.css by placing following statement in file1.css.

@import url(file2.css);

The above url is relative and file2.css is expected to be available at the same directory level as file1.css.

Otherwise you can specify a complete URL or a relative URL as shown in the following examples.

Import from a directory with absolute path on the same server:

@import url(/css/file2.css);

Import from a directory with relative path on the same server:

@import url(../css2/file2.css);

Import from another server using More >