This topic is locked
[SOLVED]

 how to include files in phprunner 5

12/12/2008 7:56:08 PM
PHPRunner General questions
D
dossanr author

In phprunner 4.2 I used the code "{$includes}{include_if_exists file="include/header.php"} " to include a header file. This does not work in phprunner 5. Instead of {$includes} there is {$header}. I guess I am supposed to use that instead now but I don't know how to use it or where to learn how to use it.
Thanks for any help,
Rico

J
Jane 12/15/2008

Hi,
to include files edit generated files manually.

D
dossanr author 12/16/2008

In phprunner 4.2 I used the code "{$includes}{include_if_exists file="include/header.php"} " to include a header file. This does not work in phprunner 5. Instead of {$includes} there is {$header}. I guess I am supposed to use that instead now but I don't know how to use it or where to learn how to use it.

Thanks for any help,
Rico


Poked around some more and found what I was looking for. It looks like you can't specify a location and/or file name with 5.0. {$header} does replace {$includes}{include_if_exists file="include/header.php"} . In 5.0 you just make sure there is a file called header.php in your include folder and thats all you have to do.

hichem 1/4/2009



Poked around some more and found what I was looking for. It looks like you can't specify a location and/or file name with 5.0. {$header} does replace {$includes}{include_if_exists file="include/header.php"} . In 5.0 you just make sure there is a file called header.php in your include folder and thats all you have to do.


How can I add the Header and Footer to the Webreports? I am using the latest PHPRunner 5 and header and footer.php work fine for my application apart from web reports. Any idea anyone?

thanks

J
Jane 1/5/2009

Hi,
to add header to the web reports edit generated webreport.php file.

Fund this line:

include("include/dbcommon.php");



and add following code just after:

include("include/header.php");