sg

Cumartesi, Aralık 03, 2005

[Gmail-Lounge] Re: php questions


What are we trying to do here?!

Theres a couple tricks you can do to trick the browser into thinking
its not a dynamic script:

1. Change what file types are executed as php on the server, this is
really only possible if you run the server or give anal love to the
owner/admin of it. But this will allow you to have
http://whatever.com/file.js

2. mod_rewrite, not many web servers enable this, because it can be
abusive to some degree. If it is enabled you can easyly make
http://whatever.com/file.js point to http://whatever.com/file.php.

3. Path Info, this allows you to have a url like:
http://whatever.com/file.php/a/value/b/value.jpg. It requires a little
php trick to do it, and not all servers are configured to execute a
php file in a path like that, but if yours allows it you can easyly
trick the client into thinking its a regular file instead of a dynamic
script.

Maybe you've all moved onto other things, I donno... confuseing. I hate regex.

On 12/2/05, Allen Day <so.orange@gmail.com> wrote:
>
> Luka Kladaric <allixsenos@gmail.com> wrote:
> >
> >uhmmmmm... yeah, I forgot about that... I've been meddling with the
> >mod_rewrite regexes lately and haven't used the PHP sort for a
> >while... I forgot about PHP string escaping
>
> Mod rewrite's limited regex implementation drives me nuts--I throw together
> something fancy and get a server misconfiguration error -- have to tone it
> down, way down ;)
>

0 Comments:

Yorum Gönder

<< Home


Komik Videolar   islam  şarkı sözleri  yemek tarifleri  gelibolu  huzur   sağlık