Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


marcos rodriguez
marcos rodriguez
1,214 Points

Practicing "scandir(''):" with on my Macbook pro but having a hard time finding the harddrive from my pro..

So I know that on a PC, "C:" is the local disk/drive, and I am trying to practice with my Macbook but it seems the hard drive is a different name and I cant find it.. somewhere online someone said to try "/" but that doesn't work either. I am trying to 'print_r' variable "scandir('')".



$message = scandir("/:mamp");

?> <!DOCTYPE html> <html> <head> <title>Ch8 PHP Functions</title>


    <h1>PHP Functions</h1>

    <?php echo ($message); ?>