Im calling this php code from flash to use as a preloader for my images. When I go to the page (directly) I can see all the images but, when I call it from flash is it really caching them? or does the below need to be in a function to do that?
<?php
foreach (glob("dir/*.jpg") as $filename) {
echo "<img src='$filename'/>";// class='preload'
}
echo "&confirmStatus=worked&";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>glob_html</title>
<style type="text/css">
<!--
.preload {
display: none;
/*
position: absolute;
top: -100px;
left: -100px;
//
height: 1px;
width: 1px;
*/
}
-->
</style>
</head>
<body bgcolor="#ffffff">
<p></p>
</body>
</html>