Hey,
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?:$
mike4
0
Newbie Poster
Recommended Answers
Jump to Postwhat 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.
Jump to PostYou can execute a block of PHP code in plain text directly. I would recommend taking a look at the eval() function, as that will allow you to do what your trying to …
All 5 Replies
ryan_vietnow
13
Posting Pro
Designer_101
-2
Posting Whiz
mike4
0
Newbie Poster
maddog39
0
Light Poster
vdeych
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.