Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialmarcos rodriguez
1,214 PointsPracticing "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('')".
HERES MY CODE:
<?php
$message = scandir("/:mamp");
?> <!DOCTYPE html> <html> <head> <title>Ch8 PHP Functions</title>
</head>
<body>
<h1>PHP Functions</h1>
<?php echo ($message); ?>
</body>
</html>