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 Building Websites with PHP Dependency Management Autoloading

Hot Bricks Employee
Hot Bricks Employee
10,991 Points

The app.txt file is not generating. Love some help

Hello All,

the app.txt file is not showing up in the workspace window. My code is as follows:


require 'vendor/autoload.php'; date_default_timezone_set('America/Los_Angeles');

$log = new Monolog\Logger('name'); $log->pushHandler(new Monolog\Handler\StreamHandler('app.txt', Monolog\Logger::WARNING));


echo 'Hello World!';

Love some direction. Thanks

1 Answer

Tomasz Budny
Tomasz Budny
14,588 Points

I have the same code and it works. Check previous steps to see if everything is as it should be. Have you refreshed the folder tree just in case?

Leigh Maher
Leigh Maher
21,830 Points

Thanks Tomasz. That did it for me!

Sean Flanagan
Sean Flanagan
33,235 Points

Thank you Tomasz. I've just refreshed my folder tree. Now, where's the Best Answer option please? :D