PDA

View Full Version : If Directory Exist



Dalziel
05-01-2003, 05:07 PM
Is there a way with PHP to check if a directory exists and if not create it?

Ökii
05-01-2003, 05:52 PM
if(!is_dir($ref)) { mkdir($ref,0777);}