|
Posted by clb on 12/28/06 23:43
I don't know your exact config but I use a CLI and you can do the same w/ PHP as
you would do with Perl, that is, start the file with a line like:
#!/usr/local/bin/php
<?php
...
?>
This will execute the program same as a perl might.
Andy Hassall wrote:
> On 7 Dec 2006 15:59:46 -0800, "arorap" <arorap@gmail.com> wrote:
>
> >I've seen a behavior on both my windows machine and a Linux server that
> >php scripts get called even when called without a .php extension.
> >
> >for example,
> >http://srlchem.com/company/about.php
> >gets executed even when called as
> >http://srlchem.com/company/about
> >
> >(you can actually verify by opening both those links)
> >
> >Is anyone aware of this behaviour ? This works for all PHP files and
> >I've not put any configuration directive in place to make this happen.
> >Anyone has any clue why this happens ? .. What default configuration
> >can be making this happen ?
>
> Apache's MultiViews option is most likely - ask in alt.apache.configuration
> for more details.
>
> --
> Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
> http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|