Posted by patrick_woflian on 10/17/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????
Navigation:
[Reply to this message]
|