Re: PHP and Search Engines
| From: | php at minotaur dot nu | Date: | Thu, 09 Nov 2000 14:52:52 +0000 |
| Subject: | Re: PHP and Search Engines | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-24497@lists.php.net to get a copy of this message | ||
On Wed, 8 Nov 2000 11:03:18 -0800 (PST), you wrote:
> http://www.foo.bar/some/path/script.php/arg1/arg2
>$PATH_INFO will contain "/arg1/arg2"
>...
>This makes things very flexible for you and you can keep your URLs nice
>and pretty. I hate big long ugly untypable URLs with a passion. URLs
>should be easy to guess. For example:
> http://www.foo.bar/products/widget
>That should give me information and the product called "widget".
I'm just finishing off a website service with a good example of just
that technique.
Paste the following into a file - example.html
<html>
<script language='JavaScript'
src='http://alert.bigsites.co.uk/books/export/javascript/usercat/10/comp/12'>
</script>
</html>
For now, it will output javascript (hence the script-block), but in
the future it can easily be extended to output XML, other text formats
- or a PHP 'serialize' dump to be 'unserialize'd and stored/output as
required. The other parts of the URL encode the user ID, source of
the data (http://www.computerbooks.uk.com) and the category of reviews
(Operating Systems)
Alister