Hi

I am implementing a template system using the wrapper class in this example: http://www.php.net/manual/en/stream.streamwrapper.example-1.php

I use this code to get the wrapper output:

ob_start();
include("template://" . $template_name);
$template .= ob_get_contents();
ob_end_clean();

However, in some servers this code is not working, all I get is a blank page. I am not sure if it is a php directive issue, I changed allow_url_include to both 0 and 1, but it did not have any effects on the code.

So what is the problem with the code.

error logging is on, and it is not showing any errors related to this issue
using stream wrappers in php gives blank page

What in the world is template:// ?

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.