This topic is locked
[SOLVED]

How to ger my commonfunctions.php file to load

5/31/2024 4:05:08 PM
PHPRunner General questions
D
dshepperd author

I've been away from using PHPrunner for a few years. My current projects continue to use version 9.8. I thought I'd see what versions 10 and 11 are all about.

My projects have lots of custom php functions. So far what I used to get PHPrunner to load them beginning with perhaps version 5 or 6 was to edit include/commonfunctions.php in the PHPrunner source tree and add one line at the top 'require_once(getabspath("include/commonfunctions_my.php"));' as well as add my commonfunctions_my.php to the source tree. That worked a treat exept I'd have to do the edit each time the PHPrunner package got updated. Not terrible, but a bit annoying.

I'm thinking at some point since version 6 a feature has been added to PHPrunner where this can be done differently and much more elegantly especially since version 10. Is this the case? If so, any idea how I go about it?

Thanks in advance.

Sergey Kornilov admin 5/31/2024
D
dshepperd author 5/31/2024

Thanks. That works perfectly.