Re: How does work shorten url services?
| From: | Jason Wong | Date: | Sat, 18 Sep 2004 14:33:09 +0000 |
| Subject: | Re: How does work shorten url services? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197106@lists.php.net to get a copy of this message | ||
On Saturday 18 September 2004 21:23, Henri Marc wrote:
> Ok, it is like I thought, but if it is made in PHP is
> there a way to catch all the ID sent to the main page
> of tinyurl.com and then query the database?
If your webserver is apache you could use its rewrite engine to ensure that
all requests to http://example.com/ gets processed by php (see
apache docs).
> Like I said before, when someone type in its browser
> the url tinyurl.com/h4599 how tinyurl (or other
> similar services), are able to get the ID, what is the
> command?
Then in php process the request (look in $_SERVER).
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
panic("esp_handle: current_SC == penguin within interrupt!");
2.2.16 /usr/src/linux/drivers/scsi/esp.c
*/