Posted by Jeppe Uhd on 08/24/05 10:21
Louise GK wrote:
> Hiya. I am experimenting with a PHP program I'm writing. I'd like to
> have the PHP pretend to be a directory.
>
> I've managed to work out...
> example.com/myprog.php/hello
> and
> example.com/myprog/index.php/hello
>
> But I'd like...
> example.com/myprog/hello
> (Much like wikipedia does.)
>
> I've done some searching but I can't find how to make it happen.
> Anyone know the magic words please?
Many people, many opinions...
My opinion:
Place the phpfile in the web-root, call it myprog.php and enable MultiViews
on the dir:
http://httpd.apache.org/docs/1.3/content-negotiation.html
Then you can access the file with example.com/myprog/whatever/you/want
Works like a charm...
--
MVH Jeppe Uhd - NX http://nx.dk
Webhosting for nψrder og andet godtfolk
Navigation:
[Reply to this message]
|