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

Question on Site Security

I just finished the section on Escaping Output for PHP. It is really interesting how someone could alter a site's appearance by entering code into a submission form. However, I don't get how it is possible to alter the site, so that someone else sees something else different. If the files are being served to each individual computer from one root computer server, I would think the only way to alter what someone else sees is to change the original text editor files. Can someone explain?

6 Answers

It is definitely possible to do that, especially if you send malicious JavaScript inside a <script> tag, or better yet, malicious PHP that would get executed before the page is returned

Can I ask for a link to this section, I would be interested in seeing it. Thanks!

I am not sure what you mean. A link to what?

You mention finishing a section on Escaping Output for PHP - what course is that from on this site?

The course is called Enhancing a Simple PHP Application. The section is the first of eight, and it is titled Integrating Validation Errors.

Thanks Jeff much appreciated