Menu
Hi experts,
I wrote this code to get file names and their sizes but the its not working, whats the error, please help.
[CODE]
<script language=”javascript”>
myfiles = new Array();
myfilesize=new Array();
<?PHP
$files = GLOB(‘*.*[3]’);
foreach ($files as $value)
{
print “myfiles.push(“$value”);”;
print “myfilesize.push(filesize($value));”;
}
?>
</script>