/    Sign up×
Community /Pin to ProfileBookmark

wierd photogallery bug

Ok so i built this photogallery. A php script reads all of the images in a folder and prints it into an array. and that array is stored in a variable. Then i call that script into my flash script and it prints eeverything out.

There is no thumbnails for the gallery, it just displays the images at a smaller size but if you load the gallery in IE it takes the small images and displays them as there full size, thus making everything look horrible and gross lol.

view [url]www.raquelriskin.com[/url] in IE (seems to happen in 6 & 7 ) and then to “gallery” to see the bug. If you dont see it right away clear your cache and try it again.

Once an image has been loaded one time, it will then display normally so i think its a cache’ing issue, so is there a way i could cache all the images first then run the array. In theory it makes sence right?

let me know your guys thoughts, im really out of idea’s for this one so anything will help. Cept i dont want to have to make two sets of images (thumbnails and full sized).

anything will help ?

almost forgot. here is my php file for the script.

[code=php]<?php
$path = substr($_SERVER[“SCRIPT_FILENAME”], 0, strrpos($_SERVER[“SCRIPT_FILENAME”],’/’)+1);

$pixdir = dir($path . “../_images/_sized/”);

$filelist = “”;

while(($file = $pixdir->read()) !== false) {
if (!($file == ‘.’ || $file == ‘..’ || $file == ‘.DS_Store’ || $file == ‘Thumbs.db’ || $file == ‘_notes’)) {
$filelist .= “$file|”;
}
}
$pixdir->close();

echo “&filelist=” . $filelist;
?>
[/code]

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @invisibled spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...