PDA

View Full Version : php include?


Red Spider
12-05-2009, 01:30 PM
Anybody know how to get a php include working on v4?

I can get it working on v3 using the following plugin:

ob_start();
include('teh_file.php');
$tehinclude = ob_get_contents();
ob_end_clean();

and inserting $tehinclude into the header template but this wont work on v4 :(

Lynne
12-05-2009, 01:57 PM
Did you try a search in the vb4 forums because I'm pretty sure this was already brought up.

Red Spider
12-05-2009, 02:23 PM
just got linked to one of David's blogs about this - but i still cant get it working :(

Lynne
12-05-2009, 02:38 PM
Try a search on ob_start and there is info. Here's just one thread:
Include php page (https://vborg.vbsupport.ru/showthread.php?t=228056&highlight=ob_start)