![]() |
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; } } ?> |
what is your problem?
IcI |
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 |
Need more info that that bud. If you get any errors what's it??
|
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 |
ok ill just try to get a new host i found out what happened
|
PHP Code:
PHP Code:
|
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; } } ?> |
Heres my version..
PHP Code:
|
All times are GMT -5. The time now is 11:42 AM. |
Powered by vBulletin®