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 trial
Graham Kite
Courses Plus Student 8,123 Points(dirname(_ _FILE_ _)
I understand (dirname(FILE) however, I have a wordpress theme with (dirname(_ FILE _)
IE there are spaces between the _ _ s this something new? is it an error? should I remove?
2 Answers
Steve Hill
9,741 PointsIf there are spaces between the _ characters, that's an error. FILE should always be two underscores on each side of the word, this is a predefined PHP constant representing the current filename.
Graham Kite
Courses Plus Student 8,123 PointsThank Stephen all good, it seems it is just the way my editor is displaying the _, I opened in something else this morning and all was good.
look very strange to see it l;like that.