Jump to content

Recognise If A Directory Exists?


JustinMs66@hotmail.com

Recommended Posts

ok so i did this:
[code]<?php
if (is_dir('userfiles')){
echo "userfile DOES exist";
else
echo "userfiles does NOT exist";
?>[/code]
and it outputs this:
[b][i]Parse error: syntax error, unexpected T_ELSE in /index.php on line 4[/i][/b]
but i can't see what i did wrong! please help!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.