Reply to showing images from a directory

Your name:

Reply:


Posted by patrick_woflian on 10/02/76 11:34

hey guys. okay... this may seem confussing to you but im in desperate
need of help!! basically i have a list of images in a directory called
'pictures'.. and i was hoping to show them on a web page by the
following code:

<?php

$handle = opendir('pictures');

if($handle) {

while(false !== ($file = readdir($handle))) {

if(preg_match("/\w+(.jpg)/",$file)) {

print"<a href='pictures'>"$file"</a>";


print "$file <br>";

}

}
closedir($handle);
}
?>

but the code doesnt work and ive tried so hard to sort it out.. any one
able to help????

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация