I have uploaded/imported my files via net2ftp. One of them is a html file which contain some PHP code. The problem is when I open that html file in address bar, the page is messed up. Then I looked at the page source code and found that my PHP opening and closing tags are changed…
This makes my PHP code become invalid and treated as a comment. How do I prevent this from happening?
I didn’t have this problem on my previous account which uses old cPanel. I imported my files exactly from my previous account. I didn’t edit them or anything, so the scripts are exactly the same.
Also, I put PHP code inside a textarea to get the content from a txt file, but it won’t display the text in the txt file. Instead, it shows the PHP code itself. Here’s my code:
Any help will be appreciated.