[BNM] PHP help - check directory for file

Sebastian von Bischopink lists at allaboutseb.com
Mon Nov 20 11:16:34 GMT 2006


Hi BNM,

I am in need of a small php-script that allows me to check in a  
specific directory
on the server whether a .pdf file is present or not. If a pdf file is  
found, the script
should echo a link to the file. Else it should not display anything.

I reckon this should be pretty straight forward using opendir/readdir  
and an if/else statement,
but then i am not a php coder. So any help would be greatly appreciated.

Thanks in advance,

Seb







More information about the BNMList mailing list
BNMList is hosted by Screenlists, a Screen-Play.net service