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.
This must be because there are various ways of starting a block of PHP code:
<? ... ?>(known asshort_open_tag)<?php ... ?>(the standard really)<script language="php"> ... </script>(not recommended)<% ... %>(deprecated and removed ASP-style tag after 5.3.0)Apparently, you can open a PHP block one way, and close it the other. Didn’t know that.
So in your code, you opened the block using
<?but PHP recognizes</script>as the closer. What happened was: