Easy dynamic images (without .htaccess)

Discuss phpBB 3.0.x in general.
Forum rules
Please post any phpBB 3.1.x related topics in the forum.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Easy dynamic images (without .htaccess)

Postby igorw » 21 Aug 2006, 15:09


- we're poor!

User avatar
Afterlife(69)
Member
Member
Posts: 175
Joined: 30 Jun 2006, 21:23
Real name: Dean
Location: Sydney, Australia
Contact:

Postby Afterlife(69) » 21 Aug 2006, 18:15

Ive known about this for quite some time but personally prefer mod_rewrite...

for example if i wanted to turn say image.php?image=2.gif into image2.gif i could simply write this into .htaccess:

RewriteEngine On
^image([0-9]*).gif$ image.php?image=$1 [L]
Life in the house :)

User avatar
Noobarmy
Past Contributor
Past Contributor
Posts: 545
Joined: 02 Jun 2006, 11:19
Real name: Anthony Chu
Location: UK
Contact:

Postby Noobarmy » 21 Aug 2006, 19:54

yeah i've seen this before as well. someone once used it as their avatar so they had various images which would rotate around. nice to know though :)

User avatar
Afterlife(69)
Member
Member
Posts: 175
Joined: 30 Jun 2006, 21:23
Real name: Dean
Location: Sydney, Australia
Contact:

Postby Afterlife(69) » 13 Oct 2006, 07:48

You can also do this by accessing a file as-if it were a directory and parsing the url via php (or another language)

The following url schema will fool bbcode into thinking the script is a directory: http://auscoder.com/2006-07-12/alternat ... -vars.html
Life in the house :)


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “phpBB 3.0.x "Olympus" discussion”

Who is online

Users browsing this forum: No registered users and 6 guests