Forum Moderators: coopster
New here.
I am having a problem with require/include parsing .php files. It works fine for html, but for some reason when I include .php files, the page displays my actual php code as plain text. Yet it also seems to execute said code after displaying it. Any help would be appreciated.
thanks,
-Michael
From [php.net...]
When a file is included, parsing drops out of PHP mode and into HTML mode at the beginning of the target file, and resumes again at the end. For this reason, any code inside the target file which should be executed as PHP code must be enclosed within valid PHP start and end tags.
Glad you found the problem. ;)
Best of luck!