checking my understanding

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

Post by m2babaey »

thanks.
Visitors can't see PHP code. No worries. If you want to hide errors, turn them off (which I'm sure you'll do when the site is live, right?)
yes they don't see it but how about the time something is wrong especially with the server?
for example save a php file on your own computer on desktop and open it with IE. ( or Firefox is better). i guess you'll see the code only. not the executed result
by the way, how to turn off errors?
did you mean using cpanel or a code?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Saving the results shown in the browser will only get them the generated HTML, nothing more.

As for turning off errors, .htaccess often has the ability to do it.
Post Reply