PDA

View Full Version : Include PHP file in template


amnesia623
08-29-2007, 12:47 AM
I want to create pages in vb that will include a template and call a php file.
The template will have static text and the php fill will pull data from a database.


If I follow the tutorial for adding pages using vb templates ->
https://vborg.vbsupport.ru/showthread.php?t=62164

and then add a plugin with the php file included described here ->
http://www.vbulletin.com/forum/showthread.php?t=173937

Would it give me what I want? It seems a little redundant to include 2 files, or is it the way it is supposed to be?

Kirk Y
08-29-2007, 01:11 AM
Take a look at this tutorial: https://vborg.vbsupport.ru/showthread.php?t=98009

It's a little more in-depth and more recent that Gary's article.

Any PHP you'd like to add to your script can be added to the custom page you're creating - you don't need to use any plugins (unless you just want to).

amnesia623
08-29-2007, 01:19 AM
Thanks kirk, I'll check it out!