PDA

View Full Version : How to include php


Spawnie1978
07-03-2009, 07:54 AM
Hi,

I want to include some php-code... But I dont get how the pluginstuff works...
Maybe someone is so kind and helps me out?

This is what needs to be included:
<?php require_once('../wordpress/wp-config.php');?>
<?php wp_head(); ?>

Thanks alot!

--------------- Added 1246612627 at 1246612627 ---------------

Can I do it just like that?
ob_start();
require_once('../wordpress/wp-config.php');
wp_head();
$includedphp = ob_get_contents();
ob_end_clean();

Dismounted
07-03-2009, 09:26 AM
Can I do it just like that?
Yes, that is a method of doing it - it is also the "recommended" method given by the manual.