fastcgi bug when doing something a little tricky

mike mike503 at gmail.com
Sat Jul 5 11:54:41 MSD 2008


post your php script

are you sure it's not doing some sort of internal or external redirect
that you're just not seeing happen?

On 7/4/08, Kingsley Foreman <kingsley at internode.com.au> wrote:
> Hi folks,
>
> Ive just found a bug/feature when using fastcgi in a slightly unusual
> manner.
>
> nginx version: nginx/0.6.31
>
> http://websiteurl/article.php
>
> works fine
>
> however if you do
>
> http://websiteurl/article.php/blah/blah
>
> It will still run article.php like i want it to do however depending on the
> length of html the script it runs it multiple times
>
> eg. if I add
> exec("/bin/echo 1 >> /data/www/test");
> to the top of article.php and go to
>
> http://websiteurl/article.php
>
> it returns
> ___________________
> 1
> ___________________
>
> however if i go to
> http://websiteurl/article.php/1/
>
> it returns
> __________________
> 1
> 1
> 1
> 1
> 1
> 1
> 1
> 1
> 1
> 1
> ___________________
>
> Its a bit of a problem for what im trying to do as i would ideally like to
> have
> http://websiteurl/article/id/name/etc
> and have it process article as a php script
>
> Kingsley Foreman
> Technical Leader Content Services / Content Management Group
>
> =============================================
> Internode Systems Pty Ltd
>
> PO Box 284, Rundle Mall 5000
> Level 5 150 Grenfell Street, Adelaide 5000
> Phone:  +61 8 8228 2978
> Fax:    +61 8 8235 6978
> Web:    http://www.internode.on.net
>       http://games.internode.on.net
> =============================================
>
>
>
>





More information about the nginx mailing list