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 Build a Simple PHP Application Creating the Menu and Footer Variables and Conditionals

PHP Warning: shell_exec() has been disabled for security reasons

When i look into the preview i have this error message.

And after that the code of the challenge appear.

It seems that my code made an error althought it's correct and i can go to the next task.

Show us your code please.

jhdsfjhdfs hjkhkjkhj
jhdsfjhdfs hjkhkjkhj
Courses Plus Student 2,980 Points

I believe Team Treehouse uses shell_exec() function to isolate the code you type into their 'workspace/console/shell' to run your applications/programs.

As i rarely go the the preview before write my code i realised that the error is already there, i mean before i write code. It's for the different tasks of 'Creating the Menu and Footer' in' build a simple application'. So i guess this problem don't come from my code !

4 Answers

Chris Shaw
Chris Shaw
26,676 Points

Seems like the challenge is attempting to do something isn't not allowed to /cc Jim Hoskins Randy Hoyt

Martin Mekhaiel
Martin Mekhaiel
14,297 Points

i had the same problem and there was a problem with my code, please just post your code and lets see.. :) regards

@Martin -> It's not a problem from my code because the error message is there without any code that i wrote.

@Chris - > ok so this is a bug ?

Chris Shaw
Chris Shaw
26,676 Points

Not a bug per say but an oversight in the challenge(s) as there is no need for anything to be executing shell_exec as that is a far more advanced function that Treehouse don't teach.

Ok thanks