[PHP] Re: phpbuilder article question From: alister <email protected>
Date: 12/22/00

On Fri, 22 Dec 2000 00:41:22 -0800, you wrote:

><Location /local>
>ForceType application/x-httpd-php3
></Location>
>
>This forces every request that starts with "/local/" to call a script called
>"local"
>
>So what it's saying is that when a user accesses a page with a $PHP_SELF
>that starts with /local, it calls a script called "local" in $DOCUMENT_ROOT.
>So the "local" dir also must be in $DOCUMENT_ROOT. Wait...you can't have a
>file and a directory with the same in name in the same directory, can you?

Thats right, but a url of the form
http://www.example.org/local/these/are/parameters doesn't have any
sub-directories invoved (other than the directory that the php script
'local' is in.

http://alert.bigsites/books/export/javascript/usercat/10/comp/12
is a project I'm finishing up, in this case, 'books' is a directory,
and 'export' is a script. The '/javascript/usercat/10/comp/12' are
the parameters to the script. (ie output Javascript with the user#10,
category 10, sub-cat 12 - 'Operating Systems'). You can see the end
result at
<URL:http://alert.bigsites/alert/showLink.php?style=javascript&url=http://alert.bigsites/books/export/javascript/usercat/10/comp/12>

In this case, the need wasn't to be search-engine friendly, but people
friendly, a short snippet of javascript with a single URL to get the
data.

Alister

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>