Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-01-2003, 04:07 PM   PM User | #1
Dalziel
Regular Coder

 
Join Date: Nov 2002
Posts: 161
Thanks: 2
Thanked 0 Times in 0 Posts
Dalziel is an unknown quantity at this point
If Directory Exist

Is there a way with PHP to check if a directory exists and if not create it?
Dalziel is offline   Reply With Quote
Old 05-01-2003, 04:52 PM   PM User | #2
Ökii
Regular Coder

 
Join Date: Jun 2002
Location: UK
Posts: 577
Thanks: 0
Thanked 0 Times in 0 Posts
Ökii is an unknown quantity at this point
if(!is_dir($ref)) { mkdir($ref,0777);}
__________________
Ökii - formerly pootergeist
teckis - take your time and it'll save you time.
Ökii is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:04 PM.


Advertisement
Log in to turn off these ads.