Between a Rock and a Hard Place - Unsure on direction to go/continue

60 views
Skip to first unread message

Ian Mclean

unread,
May 18, 2023, 9:44:24 PM5/18/23
to PHP Desktop
Between a Rock and a Hard Place
G'day community :) (Thanks in advance for any and all input)
Working as the only IT person in a company of approx 70 computers.  Mostly comprised of work from home / remote working staff.

[The Quandary]
I'm having issues trying to modify the source
Continue trying to modify for the phpDesktop source code to make 2 minor changes
or
Start an entirely different project to do what I am trying to do. (an RMM of sorts, see 'How I'm using phpDesktop' below)

[My ability and history]
Past:
Basic, QBasic, Visual Basic (VB4 VB6 and earlier). (also VBA and still do that to this day as required). Then I moved onto

Present:
PHP (and with it: MySQL, HTML, JS and CSS (not too good JS or CSS)
(WAMP and LAMP)

Future:
Who knows ;)

[Changes I want to make]
For this to make sense you may need to read how I currently use phpDesktop and why (Below).
1) Prevent user from closing the program (I understand why this isn't already a feature)
2) Make phpDesktop minimise to tray when i starts
Why: So that our users can't easily exit it by blindly clicking things and so that it isn't in their face when it starts up.

[How I'm using phpDesktop]
I see plenty of potential for this for other solutions, especially things I had done in the past.
I can remote into each computer individually and perform whatever tasks I need, this was to make life easier and less obtrusive for our users

-phpDesktop copied to PC
-phpDesktop set in task scheduler to start as administrator when user logs in
-phpDesktop WWW: 1 simple page that tells the user to minimise the window and not to close it (minimise to try = true)
-phpDesktop WWW: Same simple page uses JS to call the php scripts every 10 minutes
-phpDesktop WWW: Also includes some debugging pages for me and for testing
-phpDesktop WWW: Contains php scripts to pull info from our online web server using CURL
-phpDesktop PHP Scripts: 1) Pull records from online database.
-phpDesktop PHP Scripts: 2) Uses shellexec to peform file manipulation (Creation, Download or Edit files) in windows.
-phpDesktop PHP Scripts: 3) Uses shellexec to perform any other tasks (REG commands, Run setup file, Fetch info from PCs
-phpDesktop PHP Scripts: 4) Uses shellexec to perform any other tasks (REG commands, Run setup file, Fetch info from PC
-phpDesktop PHP Scripts: 5) Updates outcome to the online server

note: online web server is unrelated to phpDesktop but I have included for context
-online server: has tables for a Catalogue of what will be frequently used tasks
-online server: has a queue for each individual computer
-online server: has a table, unrelated to those above, stores details of the individual computer, including a unique identifier.

[Why I'd rather continue using phpDesktop instead of making another program to do the above tasks]
1) I'm familiar with php
2) I like the idea of using the already implemented phpDesktop and the php scripts to download and put in place any existing or new php files and code changes.

So:
Should I continue trying to edit the existing source? (I will need some assistance with this)
or
Should I just step away and make a simple program, single EXE that has that basic functionality (Fetch info from a server, write files to a computer, send commands to command prompt, and modify windows registry)
Reply all
Reply to author
Forward
0 new messages