includes, files
Posted: Thu Oct 08, 2009 2:31 pm
Ok, this is probably my first post of many as I figure out how to get a page template working using php.
Right now, I am trying to include files, and save their *parsed* output as a variable. I am doing this with ob_start, ob_get_contents, and ob_end_clean. Is there a faster way to get a parsed php file's output into a variable (as a string)?
Secondly, I am including a file, which has a function in it. But then later when I try to call that function in the page, I get a fatal error saying the function doesn't exit. Any ideas?
Right now, I am trying to include files, and save their *parsed* output as a variable. I am doing this with ob_start, ob_get_contents, and ob_end_clean. Is there a faster way to get a parsed php file's output into a variable (as a string)?
Secondly, I am including a file, which has a function in it. But then later when I try to call that function in the page, I get a fatal error saying the function doesn't exit. Any ideas?