I need help trying to call a php include in a php block. This is the code that I have in HTML that works fine.
<!--#set var="cat" value="349" -->
<!--#set var="show" value="products" -->
<!--#set var="list_products" value="Y" -->
<!--#include virtual="avail_products_home.php" -->
Now, I tried putting that code into the following function in lib-commmon.php and tried calling it into a php block but all I got was a blank white page.
function phpblock_truthstore_items( $cat = 348, $show = both, $list_products = yes )
{
chdir("../../truthstore/cart/customer/"

;
include "avail_products_home.php";
}
Anyone have any ideas on how to get this code to work.