This topic is locked
[SOLVED]

Advice on keeping alterations to audit.php

9/6/2021 11:01:56 AM
PHPRunner General questions
Dalkeith author

Dear All

I've had to make adjustments to the Audit.php file because of proxy server setting on my MS Azure PHP web app service

Is there any advice on how I can ensure that the changes are kept between PHP Runner rebuilds or do I need to alter them manually after each rebuild..

Thanks

Sergey Kornilov admin 9/6/2021

We do not recommend tinkering with source code as it will introduce issues on the long run. If you must, there are two options here.

  1. Modify C:\Program Files\PHPRunner10.6\source\include\audit.php file. You will have to do this every time after installing a new build.
  2. Copy this source file to <project folder>\source\include folder and make your changes there. These changes will be only applied to the current project. The downside - when this audit.php fiel will changed in a newer build or in a newer version you will be stuck with the old version of the file and will be wondering why something doesn't work as expected.

Dalkeith author 9/6/2021

Thank you for this