single php file multiple directories?

    Date: 09/24/06 (PHP Community)    Keywords: php

    How can I do this?

    I have a directory foo. In this directory I'd like to put a single .php file that will be called when any subdirectory of foo is accessed. Like say:

    domain.com/foo/alice
    domain.com/foo/bob

    Then I want the php script to be able to pull out the (alice|bob) part of the URL. Is this possible?

    Source: http://community.livejournal.com/php/496735.html

« Contract position in DC || "PHP is doomed", says... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home