Archive for November, 2005



How to Find the Current URL with PHP

The full URL to a page comes in three parts: The domain name, the path to the file then the filename, and the query string. For example, take the URL http://www.example.com/example/page.php?name=Bob. The three parts of this are:
1. The domain name: www.example.com2. The path to the page: /example/page.php3. The query string: name=Bob
So how do you find [...]

Find a visitor’s IP Address with PHP

Do you want to know the IP address of a visitor? This can be useful for many reasons, such as tracking site usage or blocking access to specific people. Here's how you can find it using PHP.
In a PHP page, within the PHP tags, <?php ... ?>, you can retrieve the IP address of a [...]




About

You are currently browsing the DiscoMoose weblog archives for November, 2005.

Longer entries are truncated. Click the headline of an entry to read it in its entirety.

Categories

Categories