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

PHP

Bruno Monteiro
Bruno Monteiro
4,230 Points

TThe stream or file "app.txt" could not be opened: failed to open stream: Permission denied-> Namespacing(PHP)

Hi yesterday i started the lesson "Building Websites with PHP"- Namespacing. The streamhandler wasnt having any problem with app.txt being a .txt and was writing on it perfectly. Today i opened my workspace and it failed to open stream to the file with the message: 'file "app.txt" could not be opened: failed to open stream: Permission denied'

Bruno Monteiro
Bruno Monteiro
4,230 Points

I change the app format back to log, and been running "php app.log" on the console to see the list of errors. It seams that StreamHandler cant or doesn't read txt ... its a bit strange because yesterday he could.. If anyone can enlighten me on this subject i would appreciated it.