Page 1 of 1

Customise XAMPP to add new program?

PostPosted: 31. January 2014 16:26
by malc_b
Hi,

Is there anyway to add another program to the appache, mysql, etc. buttons? Or I guess it might be possible to replace say mercury-start.bat with a different bat file. Or start the program from from with appache-start.bat?

To explain, rather than using mercury which seems over complex for just test a website locally on my PC, or mailtodisk which involves more clicks, I use a program called Test Mail Server Tool www toolheap com. This is a simple program that just captures port 25 output, saves it to directory AND (unlike mailtodisk) opens the message in notepad for me to read. Hence I prefer it to mailtodisk as I don't have to look for the new file and then open it to read it. I'd just like to be able to start it from xampp.

Re: Customise XAMPP to add new program?

PostPosted: 31. January 2014 16:40
by Altrea
Hi,

The control panel is open source (written in Delphi) and the sources came with every XAMPP installation.
If you are able to code Delphi feel free to add that functionality.

Best wishes,
Altrea

Re: Customise XAMPP to add new program?

PostPosted: 31. January 2014 17:41
by malc_b
I was hoping for a script I could edit. I have done delphi but a while back and I doubt I have a delphi complier installed on my PC still (or one that works on win 7 64bit).

Re: Customise XAMPP to add new program?

PostPosted: 31. January 2014 17:45
by Altrea
I'm sorry. The XAMPP control panel is not (yet!?) modular enough to add or replace a component in it.

Re: Customise XAMPP to add new program?

PostPosted: 31. January 2014 19:30
by malc_b
I've sorted it - more than one way to skin a cat.

What I've done is recompile mailtodisk after adding os.startfile(writetodisk.filename) in the last section which now reads

Code: Select all
if __name__ == '__main__':
    writetodisk = MailToDisk()
    writetodisk.writemail()
    os.startfile(writetodisk.filename)
    sys.exit()


So that pops up notepad with the new email messages

Re: Customise XAMPP to add new program?

PostPosted: 31. January 2014 19:37
by Altrea
I'm glad you could solve your problem.
Well done and thanks for sharing :D