Re: phpbuilder article question

From: Date: Fri, 22 Dec 2000 17:37:34 +0000
Subject: Re: phpbuilder article question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-31633@lists.php.net to get a copy of this message
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

« previous php.general (#31633) next »