PHP in a image file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

randomizer isn't working right then...
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

yep, seems to be some sort of thing, becuase when i test it on my localhost, using a normal htm-file, it also shows the same pic for long time until it changes :/
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

could it be a browser cache issue?
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

Works well in IE, but Mozilla caches it for some minutes :?
User avatar
dev2761
Forum Newbie
Posts: 16
Joined: Thu Oct 16, 2003 7:55 am
Contact:

Post by dev2761 »

I don't quite understand what is the problem. You wouldn't be able to upload a .htaccess to a board , could you ? So the interpreter would just try and treat your script file like a normal image, wouldn't it.


ahhh, I understand now. Am too used to vbb and not phpbb, vbb uploads most of the images (avatars) to the forum site so your script wouldn't work.
User avatar
dev2761
Forum Newbie
Posts: 16
Joined: Thu Oct 16, 2003 7:55 am
Contact:

Post by dev2761 »

one more quetion, would this work with perhaps a text file for say random signatures?
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

dev2761 wrote:one more quetion, would this work with perhaps a text file for say random signatures?
yuo mean naming the php-script to *.txt?
yesm as long as u use an .htaccess file which tells server to process the file as php
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

qads: strange that your avatar changes everytime, and not mine, are u using the same script as i, or have you another one?
Mine changes after like 5 minutes in Mozilla Firebird, or if i restart it (also when i Hold shift while pressing reload button - reloads the whole page),
While yours changes every time i reload
Post Reply