This topic is locked
[SOLVED]

Compare - Two Projects

12/12/2022 12:00:30 PM
PHPRunner General questions
lefty author

I have a program written with PHPrunner 9.8. It fairly large. I know we can look at each event and see changes to one project.
Is there any utility that is available either by xlinesoft or a third party to compare code in each project as they are supposed to be the same.
I may have made some custom changes , and unfortunately my notes are missing on the changes. My main goal is to compare events from
my 9.8 project to 10.8 project. I am afraid to just copy 9.8 project to 10.8 as I believe there will be some incompatiblites by that move.
I know Mysql prepare statement was added some time ago and I'm afraid the 9.8 project might be open to sql injection and would have to change
otherwise I am looking to see all other events the same.

Any ideas? As I do not want to go through each table event as it woud be very tedious. ?

10.8 Latest Build

mbintex 12/12/2022

Just as an idea - in buttonhandler.php you find all php custom buttons at least. You could compare that file using any text compare on the web.

The project file should contain everything - this phpr file is a XML text file. Compare should work for that too.

lefty author 12/12/2022

Thanks for the reply . Yes forgot about all the buttons too. Events that are in my project are very long.
I was thinking about using "Brackets" , as I think I used it years ago , but it seems it is deprecated but still downloadable .
Maybe I can still use it for compare. Although it suggests Visual Studio as an alternative. Not sure if Visual studio will compare PHP as
users usually use if for asp.net / azure.
I guess I will look for a text editor that compares events and copy and paste all events from one side to the other.
I thought maybe xlinesoft had a utility that they use to compare programs. As I know they have a utility to change
a PHPrunner project to aspRunner.net code.

fhumanes 12/12/2022

Hello,

A good product to compare files is "winMerge" https://winmerge.org/ . It is also free.

I am sorry to tell you that from version 9.8 to 10.8 there are so many changes that not even copying the code of the events you will solve the problem of migration.

To obtain all the power of version 10.8, you will have to copy and recodify the events, improving the code both in fucnionality and clarity. Even in theagers, you surely have to make changes to focus on the solution.

I do not know the amount of code that you have to migrate, what is certain is that it is not as if it were a new project, it will take much less and the result will be very satisfactory.

Cheers,
fernando

lefty author 12/13/2022

Thanks for the reply ,
Yea winmerge comes to mind now . I used awhile back but forgot about that utility. Thanks and yes most of the events will have to be changed. Just hoping formatting , and javascript will still operate normally.