I’have just started to learn PHP, I’m using a free host to test my code but nothing happens and also my php code passed in source of page, does it show that server don’t interpret it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, that shows that the server isn’t interpreting it properly. The user should never receive PHP code, just the html/javascript/whatever that your PHP script outputs.
As for why this is happening, here are a few basic things to check:
<?phptag and end with the?>tag (the ending tag isn’t strictly necessary, but any code you put after it won’t be interpreted)..php(not always necessary, but some server setups may require it).