|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
help
yeah, i need help wit the sig rotator, cause this is php i guess i shoulda put it
in here <?php if ($dir = opendir("/newfolder")) { $list = buildimagearray($dir); displayrandomimage($list); } { while (false !== ($file = readdir($dir))) { if (!is_dir($file) && getimagesize($file)) { $list[] = $file; } } return $list; } { srand ((double) microtime() * 10000000); $sig = array_rand ($list); $size = getimagesize ($list[$sig]); $fp = fopen($list[$sig], "rb"); if ($size && $fp) { header("Content-type: {$size['mime']}"); fpassthru($fp); exit; } } ?>
__________________
Last edited by Lucky; 05-31-2005 at 08:30 PM. |
#2
|
||
|
what is your problem?
IcI |
#3
|
||
|
this code is actually in my sig right now
[/code][i mg]http://livings.i8.com/newfolder/index.php[/img][/code] The images dont show up
__________________
|
#4
|
||
|
Need more info that that bud. If you get any errors what's it??
|
#5
|
||
|
I just tried it and got this message: "Forbidden
Remote Host: [***.***.***.***] You do not have permission to access http://livings.i8.com/newfolder/index.php Data files must be stored on the same site they are linked from. Thank you for using 50megs". Try pasting your url in IE and see what happens... IcI |
#6
|
||
|
ok ill just try to get a new host i found out what happened
__________________
|
#7
|
|||
|
PHP Code:
PHP Code:
__________________
Quote:
|
#8
|
||
|
ok i got another host and it still isnt working here is the php
and edge-that was the folder i had it in <?php if ($dir = opendir(".")) { $list = buildimagearray($dir); displayrandomimage($list); } { while (false !== ($file = readdir($dir))) { if (!is_dir($file) && getimagesize($file)) { $list[] = $file; } } return $list; } { srand ((double) microtime() * 10000000); $sig = array_rand ($list); $size = getimagesize ($list[$sig]); $fp = fopen($list[$sig], "rb"); if ($size && $fp) { header("Content-type: {$size['mime']}"); fpassthru($fp); exit; } } ?>
__________________
|
#9
|
||
|
Heres my version..
PHP Code:
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|