Not Solved how to include files in header
#1
Not Solved
i want to include a php file in the header template how should i do it
Reply
#2
Not Solved
try This..


ob_start();
include("/namefile.php");
$news = ob_get_clean(); 
Khan Solangi Professional Web Designer In Pakistan.
Reply
#3
Not Solved
(2015-11-02, 04:34 PM)Khankharor Wrote: try This..


ob_start();
include("/namefile.php");
$news = ob_get_clean(); 

what is ob_start
Reply
#4
Not Solved
http://php.net/manual/en/function.ob-start.php
What goes around comes around
Reply
#5
Not Solved
By default you can't integrate php functions into theme templates.
You'll need a plugin for this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)