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.

PHP Logging

the log file isn't created.

I followed Aleana through the video and the php-error.txt file isn't created...

this is my snapshot: http://w.trhou.se/vx1xcqxpqo

and a photo of my .htaccess file: https://gyazo.com/0a0850b24223d693b1bb53386430f2a8

i followed all the instructions and can't get it to work.

KRIS NIKOLAISEN Steven Parker

2 Answers

After you run logging.php right click the left pane where the files are listed and choose refresh.

I did it, should i run it on the command-line or on the browser?

I just ran php logging.php on the command line then refreshed and saw the log file was created.

That's so odd. i see it working now as well. but it updates only when i run the file in the terminal - php.loggins.php