WesleyA Posted June 6, 2015 Share Posted June 6, 2015 My script gives a sort of an errormessage. Actually i can see a part of the code at the output screen in the browser. Like wth the php parser you get a notice or fatal error, but in this case the script does not work. How can i avoid these problems in the future? Link to comment Share on other sites More sharing options...
dsonesuk Posted June 6, 2015 Share Posted June 6, 2015 Usually the server will have display of errors turned off, so you will not see such a result, but for testing you would have it on so you can produce code in such a way as to validate code, and set default varible values so errors would not occure. Link to comment Share on other sites More sharing options...
Ingolme Posted June 6, 2015 Share Posted June 6, 2015 If PHP code is being shown in the browser, that's because the server isn't executing the PHP. Perhaps you forgot to give the file a .php extension, or you're opening the file from your computer's filesystem rather than using localhost.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now