PHP - is_dir() - Cant get to work

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
handell
Forum Newbie
Posts: 7
Joined: Sat Feb 14, 2009 9:18 pm

PHP - is_dir() - Cant get to work

Post by handell »

I cannot seem to get the directory of 'http://curfer.com/resume' to read back true.
What am I doing wrong here.
var_dump(is_dir('http://curfer.com/resume/'));
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: PHP - is_dir() - Cant get to work

Post by Chris Corbyn »

is_dir() does not work on http resources. It only works for filesystem resources.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: PHP - is_dir() - Cant get to work

Post by Chris Corbyn »

:arrow: Moved to PHP Code
Post Reply