Jump to content

Archived

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

JustinMs66@hotmail.com

Recognise If A Directory Exists?

Recommended Posts

1.is_dir($what_ever);http://www.phpfreaks.com/phpmanual/page/function.is-dir.html

2.header("location: where_ever.php");

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites

×

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.