Hello i wanna use this php code to count jpg files in a dic.
$directory = "../images/team/harry/";
if (glob($directory . "*.jpg") != false)
{
$filecount = count(glob($directory . "*.jpg"));
echo $filecount;
}
else
{
echo 0;
}
How can i use now $filecount in my mootool script?
Best regards Matthias.
PHP is a server-side language. Mootools is JavaScript, right?
http://mootools.net/docs/core/Request/Request