Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
[PHP Help] File Sections
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="NSA" data-source="post: 230353" data-attributes="member: 10034"><p>Hey DevBest.</p><p></p><p>So I currently have a function that get's the contents of a file and saves it as a variable.</p><p>What I'm trying to do, is... let's say the contents of the file was:</p><p></p><p>[CODE]<!DOCTYPE html></p><p><html></p><p><head></p><p>[Content Inbetween]</p><p></head></p><p><body></p><p>[Content Inbetween]</p><p></body></p><p></html>[/CODE]</p><p></p><p>I want to split the page into different sections - for different variables.</p><p>So I want to be able to have $head = "<!DOCTYPE html><html><head>[Content Inbetween]</head>"; and then $body = "<body>[Content Inbetween]</body></html>";</p><p></p><p>How would I achieve this?</p><p>Cheers.</p></blockquote><p></p>
[QUOTE="NSA, post: 230353, member: 10034"] Hey DevBest. So I currently have a function that get's the contents of a file and saves it as a variable. What I'm trying to do, is... let's say the contents of the file was: [CODE]<!DOCTYPE html> <html> <head> [Content Inbetween] </head> <body> [Content Inbetween] </body> </html>[/CODE] I want to split the page into different sections - for different variables. So I want to be able to have $head = "<!DOCTYPE html><html><head>[Content Inbetween]</head>"; and then $body = "<body>[Content Inbetween]</body></html>"; How would I achieve this? Cheers. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
[PHP Help] File Sections
Top