Actually, I spent most of last night playing with a bag of crystal meth and a 10 millimeter...
Actually, I spent most of last night playing with a bag of crystal meth and a 10 millimeter...
blunt....Originally posted by haxor41789@26 March 2004 - 01:31
Actually, I spent most of last night playing with a bag of crystal meth and a 10 millimeter...
Good!! Your create a very good tutorial..Originally posted by NightStalker@21 March 2004 - 16:20
avatar.gif
.htaccessCode:<?php $dh = opendir("."); while (false !== ($file = readdir($dh))) { if (preg_match('/\.gif$/i', $file) and $file != "avatar.gif") { $filelist[] = $file; } } srand((double)microtime()*1000000); $picnum = rand(0, sizeof($filelist) - 1); header("Location: " . $filelist[$picnum]); closedir($dh); ?>
Now you will need to upload .gif images to the selected directory that you have placed both avatar.gif and .htaccess, once you have done so, you can link to "avatar.gif" and your avatar will refresh whenever someone refreshes their browser.Code:AddType application/x-httpd-php .gif
Example:
I would create a tutorial of this.. but you create 1st!!
Bye Bye.....
Goood. Just one little niggle. I DON'T HAVE PHP!!
ive been trying to do this for a while now and cant find a free host that has .htaccess support, so can you right exactly what i would need to do if i didnt want to use .htaccess but still have the php file "avatar.jpg"?
Stealth
i have something similar to this with which im playing, but id like for the image to be refreshed every 10 seconds: either updating the pic, or even the page would be fine, but it must be done through the gif file which calls the images.
heres the code which im using (successfully)
avatar.gif:.htaccessCode:<?php $dh = opendir("."); while (false !== ($file = readdir($dh))) { if (preg_match('/.(jpg|gif|png)$/i', $file) and $file != "avatar.gif") { $filelist[] = $file; } } srand((double)microtime()*1000000); $picnum = rand(0, sizeof($filelist) - 1); $pictype = substr($filelist[$picnum], -3); $fn='http://www.ianrhodgson.co.uk/images/avatar/avatar.php'; header('Cache-control: no-cache, must-revalidate, no-store'); header('Content-disposition: filename='.$fn); header('Pragma: no-store'); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Content-type: image/$pictype"); @readfile($filelist[$picnum]); closedir($dh); ?>Code:<FilesMatch avatar.gif> SetHandler application/x-httpd-php </FilesMatch>
<insert signature here>
Too bad that's not a valid header.Originally posted by vivitron 15@14 April 2004 - 12:28
Code:header("<meta http-equiv=\"refresh\" content=\"10\">");
yeah, i know - just started playing with this, and was just trying the obvious first
didnt wanna spend hours trying to get it to work if it was that easy...clearly it isn't, and that wasnt supposed to be in the posted code
anyhow, ignoring that line (gonna edit now ) - is there a way i can get it to do the refresh thing?
<insert signature here>
Dunno, if all else fails, try Google.
thanks for the tip - not sure about this goggle though - whats that??
i did, but couldnt find it - thought youd be the best source, being the man with this shit
<insert signature here>
Bookmarks