sg

Cumartesi, Aralık 03, 2005

[Gmail-Lounge] Re: php questions

I dont even know if what im doing will be hosted, i just wanted to play around with doing stuff with PHP mostly

On 12/2/05, Allen Day < so.orange@gmail.com> wrote:

Kass Lloyd < kasslloyd@gmail.com> wrote:

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

Indeed, I've done this to make it possible to use a dynamically generated
image on phpbb message boards so my signature can be a random quote file.
(http://theprawn.com/imagiine/)
example: http://theprawn.com/imagiine/src/blimpsig.png

>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

Actually, if you can do the following item you can probably do this.  All
you need is to be running apache and have the ability to use .htaccess --
nearly every web host I've used over the years (though it's been the same
one since '01 so people may have changed policy) haven't limited this.

>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 .

With a little regex knowledge, mod_rewrite is a great way to make the urls
for scripts that rely heavily on _get variables more "readable"
(protempore.org is where I've used it the most)

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

I learned php just because I loved regex so much . . . but I'm a
text-parsing fiend. :-)



--
Caleb Eggensperger
"No one can solve problems for someone whose problem is that they don't want problems solved" --Richard Bach

0 Comments:

Yorum Gönder

<< Home


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