Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function isJPG($filename){
- $ext = substr($filename, -4);
- if($ext == '.jpg'){
- return true;
- }else{
- return false;
- }
- }
- $playlist="";
- $d = dir('gambar/');
- while (false !== ($filename = $d->read())) {
- if(isJPG($filename)){
- $playlist .= $filename . '|';
- // return data
- }
- }
- $d->close();
- //paging here
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement