How can I cause a block of php code be executed once using a command like the include_once();If i use this directly it includes the contents of the include file like HTML content!
What can I do?:$
Jump to Post
what block of code are you trying to execute?if php file then you can exclude your html content if you want to or better yet use functions.
All 5 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.