View Single Post
  #1  
Old 05-21-2009, 06:31 PM
Omar1000 Offline
pp regular
 
Join Date: May 2007
Posts: 27
insert php include in addon help

Maybe someone has an idea.

I am trying to build an addon, so far it is working, but the only problem:

include("get_resolution.php") in the script below is written into the top of my markup and I am not able to put it into the <head>-part with a TAG. I am not very good in PHP, any idea?

PHP Code:
if(preg_match("<BROWSER_SCRIPT>"$tpl)) {

$callget_res_page_name $REQUEST_URI;
$GLOBALS[callget_res_page_name] = $callget_res_page_name;
$browser_script_out = include("get_resolution.php");

$tpl ereg_replace("<BROWSER_SCRIPT>",$browser_script_out,$tpl);

Reply With Quote