Replies: 17 comments
-
What do you mean by "let your mongoose to close entire php desktop"? If you know a little of C++ you can make a change in code to use You could also run a second web server simultaneously. You could launch php web server using nircmd tool in background (async). Not really optimal, but some option. Then just do redirect in browser. |
Beta Was this translation helpful? Give feedback.
-
hi czarek,
it is closing the entire application window and you need to call it up from
the operating system again...
does this description make sense to you?
cheers
tomek
*Thomas Holst*
Egertenstrasse 19a
D-79664 Wehr
Tel : +49 7762 565 1925
***@***.*** ***@***.***>
https://tomeksblog.eu <https://hopto.selfhost.co>
Diese E-Mail inklusive aller Anlagen ist ausschließlich für den Adressaten
bestimmt und enthält möglicherweise vertrauliche Informationen. Falls der
Empfänger dieser Nachricht nicht der beabsichtigte Adressat oder ein für
den Mail-Zugang zuständiger Mitarbeiter oder Vertreter ist, werden Sie
hiermit darauf aufmerksam gemacht, dass jede Weitergabe, Verteilung,
Vervielfältigung oder sonstige Nutzung dieser Nachricht oder ihrer Anlagen
verboten ist. Wenn Sie diese Nachricht aus Versehen erhalten haben,
informieren Sie bitte den Absender per E-Mail und löschen Sie diese E-Mail
aus Ihrem Computer.
This e-mail message and all attachments transmitted with it are intended
solely for the use of the addressee and may contain legally privileged and
confidential information. If the reader of this message is not the intended
recipient, or an employee or agent responsible for delivering this message
to the intended recipient, you are hereby notified that any dissemination,
distribution, copying, or other use of this message or its attachments is
strictly prohibited. If you have received this message in error, please
notify the sender immediately by replying to this message and please delete
it from your computer.
Am Mi., 26. März 2025 um 14:25 Uhr schrieb Czarek Tomczak <
***@***.***>:
… What do you mean by "let your mongoose to close entire php desktop"?
If you know a little of C++ you can make a change in code to use
php_server.cpp (php built-in server) instead of web_server.cpp (mongoose
web server). Build instructions are in readme in chrome130 branch (for
Windows). Note that php built-in web server is single threaded.
You could also run a second web server simultaneously. You could launch
php web server using nircmd tool in background (async). Not really optimal,
but some option. Then just do redirect in browser.
—
Reply to this email directly, view it on GitHub
<#370 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BNENUJJ5Z77A6ZKOTTXFQU32WKMBZAVCNFSM6AAAAABZZOAVICVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENRSHA2TCMQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
It doesn't make sense for |
Beta Was this translation helpful? Give feedback.
-
alright,
my app is using the datatables.net js library to allow for easy & user
friendly maintenance of the different master data. as an example:
[image: image.png]
as to refresh the data to its last manipulation, i felt its the easiest to
do a location.reload().
here a code extract:
$updateContact.on( "click", function() {
// check contactDetails modal for valid email addresses if
entered
// field private email
email = $privateemail.val();
if (!emailReg.test(email)) {
$toastBubble.addClass('text-bg-danger').removeClass('text-bg-warning');
$toastMessage.html('Bitte eine gültige eMail Adresse in das
Feld: eMail(privat) eingeben!');
$toastBubble.toast('show');
return;
}
// field other email
email = $otheremail.val();
if (!emailReg.test(email)) {
$toastBubble.addClass('text-bg-danger').removeClass('text-bg-warning');
$toastMessage.html('Bitte eine gültige eMail Adresse in das
Feld: eMail(other) eingeben!');
$toastBubble.toast('show');
return;
}
// get the edited fields
let updatedContact = {
contid: record.id,
salutation: $salutation.val(),
firstname: $firstname.val(),
surname: $surname.val(),
company: $company.val(),
country: $country.val(),
street: $street.val(),
zipcode: $zipcode.val(),
city: $city.val(),
phone: $phone.val(),
privateemail: $privateemail.val(),
otheremail: $otheremail.val(),
birthday: $birthday.val(),
custtype: $custtype.val(),
status: $status.val(),
remarks: $remarks.val(),
actualUser: actualUser
};
$.ajax({
type: "POST",
url: "inc/db.cfmw.php?updateContact",
data: {
updateRecord: updatedContact
},
success: function(response) {
// test for successful update
if (response !== 'true') {
$toastBubble.addClass('text-bg-danger').removeClass('text-bg-warning');
$toastMessage.html("Kontakt konnte - NICHT -
geändert werden!");
$toastBubble.toast('show');
} else {
$toastBubble.addClass('text-bg-warning').removeClass('text-bg-danger');
$toastMessage.html('Kontakt erfolgreich geändert!');
$toastBubble.toast('show');
}
*setTimeout(function(){ location.reload(); }, 1000);*
}
});
});
}
now, on the chronicle time line: i did the tests on windows, mac, popOS &
ubuntu (both linux) with there corresponding webserver environments.
then i thought, as the motorcycle workshop owners are experts & specialists
on mechanics, but they are by far not carrying any expertise if it comes to
informatics...., to look for an easy installation routine for the 3 major
platforms. guess what --- your php desktop was and to be honest is still
the most sparkling alternative!!!!!!
BUT
when i start testing with php desktop i stumbled over the "quiting the app"
behaviour... so i started to look for other alternatives where running my
app with the build in php server did not produce the "quitting" ...
as it is not an easy peasy task to create a mac .app and maybe a linux
.appimage with an encapsulated php environment i thought to ask you whether
one can make your php desktop running the internal php server instead of
mongoose....
hm, lot's of text right, but maybe you got a feel now what my pain is!!!!
cheers
tomek
*Thomas Holst*
Egertenstrasse 19a
D-79664 Wehr
Tel : +49 7762 565 1925
***@***.*** ***@***.***>
https://tomeksblog.eu <https://hopto.selfhost.co>
Diese E-Mail inklusive aller Anlagen ist ausschließlich für den Adressaten
bestimmt und enthält möglicherweise vertrauliche Informationen. Falls der
Empfänger dieser Nachricht nicht der beabsichtigte Adressat oder ein für
den Mail-Zugang zuständiger Mitarbeiter oder Vertreter ist, werden Sie
hiermit darauf aufmerksam gemacht, dass jede Weitergabe, Verteilung,
Vervielfältigung oder sonstige Nutzung dieser Nachricht oder ihrer Anlagen
verboten ist. Wenn Sie diese Nachricht aus Versehen erhalten haben,
informieren Sie bitte den Absender per E-Mail und löschen Sie diese E-Mail
aus Ihrem Computer.
This e-mail message and all attachments transmitted with it are intended
solely for the use of the addressee and may contain legally privileged and
confidential information. If the reader of this message is not the intended
recipient, or an employee or agent responsible for delivering this message
to the intended recipient, you are hereby notified that any dissemination,
distribution, copying, or other use of this message or its attachments is
strictly prohibited. If you have received this message in error, please
notify the sender immediately by replying to this message and please delete
it from your computer.
Am Mi., 26. März 2025 um 16:14 Uhr schrieb Czarek Tomczak <
***@***.***>:
… It doesn't make sense for location.reload() to close application unless
app is crashing. If it's window.close() called then it will close
cleanly. You suggested php built-in web server and how is web server
related to this issue? The information you provide is confusing.
—
Reply to this email directly, view it on GitHub
<#370 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BNENUJN7LJUCKWR5LVK45232WKY4NAVCNFSM6AAAAABZZOAVICVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENRTGAYDEOA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Can you provide logs for when the issue occurs? |
Beta Was this translation helpful? Give feedback.
-
hm, i'll give it a try and let you know... but it will be tomorrow.
thank you so much for your help & support.
from my side i will have a closer look on datatables. maybe there is
'refresh' available other than through location.reload
cheers & have a nice evening
tomek
Czarek Tomczak ***@***.***> schrieb am Mi., 26. März 2025,
17:22:
… Can you provide logs for when the issue occurs?
—
Reply to this email directly, view it on GitHub
<#370 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BNENUJPVBOAZVDKJAS76G332WLA45AVCNFSM6AAAAABZZOAVICVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENRTGA4TMMI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
well, here your are with the debug.log file.
seems like there is nothing logged but just quitting / crashing?...
maybe i send you a little video og what is happening as well...
cheers
tomek
*Thomas Holst*
Egertenstrasse 19a
D-79664 Wehr
Tel : +49 7762 565 1925
***@***.*** ***@***.***>
https://tomeksblog.eu <https://hopto.selfhost.co>
Diese E-Mail inklusive aller Anlagen ist ausschließlich für den Adressaten
bestimmt und enthält möglicherweise vertrauliche Informationen. Falls der
Empfänger dieser Nachricht nicht der beabsichtigte Adressat oder ein für
den Mail-Zugang zuständiger Mitarbeiter oder Vertreter ist, werden Sie
hiermit darauf aufmerksam gemacht, dass jede Weitergabe, Verteilung,
Vervielfältigung oder sonstige Nutzung dieser Nachricht oder ihrer Anlagen
verboten ist. Wenn Sie diese Nachricht aus Versehen erhalten haben,
informieren Sie bitte den Absender per E-Mail und löschen Sie diese E-Mail
aus Ihrem Computer.
This e-mail message and all attachments transmitted with it are intended
solely for the use of the addressee and may contain legally privileged and
confidential information. If the reader of this message is not the intended
recipient, or an employee or agent responsible for delivering this message
to the intended recipient, you are hereby notified that any dissemination,
distribution, copying, or other use of this message or its attachments is
strictly prohibited. If you have received this message in error, please
notify the sender immediately by replying to this message and please delete
it from your computer.
Am Mi., 26. März 2025 um 17:38 Uhr schrieb Thomas Holst <
***@***.***>:
… hm, i'll give it a try and let you know... but it will be tomorrow.
thank you so much for your help & support.
from my side i will have a closer look on datatables. maybe there is
'refresh' available other than through location.reload
cheers & have a nice evening
tomek
Czarek Tomczak ***@***.***> schrieb am Mi., 26. März 2025,
17:22:
> Can you provide logs for when the issue occurs?
>
> —
> Reply to this email directly, view it on GitHub
> <#370 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/BNENUJPVBOAZVDKJAS76G332WLA45AVCNFSM6AAAAABZZOAVICVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENRTGA4TMMI>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
hi czarek,
after some more intense testing, where i felt like its not the
location.reload command causing the quit, i i came across of one of your
settings.json parameter. to be precise:
"runtime_style": "chrome",
which as you can see from the above copy i changed from 'alloy' to
'chrome'. since that change my app is working like a charme, even with the
location.reload command!
it seems like the solution!
what do you think?
cheers
tomek
*Thomas Holst*
Egertenstrasse 19a
D-79664 Wehr
Tel : +49 7762 565 1925
***@***.*** ***@***.***>
https://tomeksblog.eu <https://hopto.selfhost.co>
Diese E-Mail inklusive aller Anlagen ist ausschließlich für den Adressaten
bestimmt und enthält möglicherweise vertrauliche Informationen. Falls der
Empfänger dieser Nachricht nicht der beabsichtigte Adressat oder ein für
den Mail-Zugang zuständiger Mitarbeiter oder Vertreter ist, werden Sie
hiermit darauf aufmerksam gemacht, dass jede Weitergabe, Verteilung,
Vervielfältigung oder sonstige Nutzung dieser Nachricht oder ihrer Anlagen
verboten ist. Wenn Sie diese Nachricht aus Versehen erhalten haben,
informieren Sie bitte den Absender per E-Mail und löschen Sie diese E-Mail
aus Ihrem Computer.
This e-mail message and all attachments transmitted with it are intended
solely for the use of the addressee and may contain legally privileged and
confidential information. If the reader of this message is not the intended
recipient, or an employee or agent responsible for delivering this message
to the intended recipient, you are hereby notified that any dissemination,
distribution, copying, or other use of this message or its attachments is
strictly prohibited. If you have received this message in error, please
notify the sender immediately by replying to this message and please delete
it from your computer.
Am Mi., 26. März 2025 um 18:19 Uhr schrieb Thomas Holst <
***@***.***>:
… well, here your are with the debug.log file.
seems like there is nothing logged but just quitting / crashing?...
maybe i send you a little video og what is happening as well...
cheers
tomek
*Thomas Holst*
Egertenstrasse 19a
D-79664 Wehr
Tel : +49 7762 565 1925
***@***.*** ***@***.***>
https://tomeksblog.eu <https://hopto.selfhost.co>
Diese E-Mail inklusive aller Anlagen ist ausschließlich für den Adressaten
bestimmt und enthält möglicherweise vertrauliche Informationen. Falls der
Empfänger dieser Nachricht nicht der beabsichtigte Adressat oder ein für
den Mail-Zugang zuständiger Mitarbeiter oder Vertreter ist, werden Sie
hiermit darauf aufmerksam gemacht, dass jede Weitergabe, Verteilung,
Vervielfältigung oder sonstige Nutzung dieser Nachricht oder ihrer Anlagen
verboten ist. Wenn Sie diese Nachricht aus Versehen erhalten haben,
informieren Sie bitte den Absender per E-Mail und löschen Sie diese E-Mail
aus Ihrem Computer.
This e-mail message and all attachments transmitted with it are intended
solely for the use of the addressee and may contain legally privileged and
confidential information. If the reader of this message is not the intended
recipient, or an employee or agent responsible for delivering this message
to the intended recipient, you are hereby notified that any dissemination,
distribution, copying, or other use of this message or its attachments is
strictly prohibited. If you have received this message in error, please
notify the sender immediately by replying to this message and please delete
it from your computer.
Am Mi., 26. März 2025 um 17:38 Uhr schrieb Thomas Holst <
***@***.***>:
> hm, i'll give it a try and let you know... but it will be tomorrow.
>
> thank you so much for your help & support.
>
> from my side i will have a closer look on datatables. maybe there is
> 'refresh' available other than through location.reload
>
> cheers & have a nice evening
> tomek
>
> Czarek Tomczak ***@***.***> schrieb am Mi., 26. März 2025,
> 17:22:
>
>> Can you provide logs for when the issue occurs?
>>
>> —
>> Reply to this email directly, view it on GitHub
>> <#370 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/BNENUJPVBOAZVDKJAS76G332WLA45AVCNFSM6AAAAABZZOAVICVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENRTGA4TMMI>
>> .
>> You are receiving this because you authored the thread.Message ID:
>> ***@***.***>
>>
>
|
Beta Was this translation helpful? Give feedback.
-
I can't find debug.log file |
Beta Was this translation helpful? Give feedback.
-
It works! it was not because of mongoose but because of the default browser
setting: alloy. when i changed the settings to: chrome its working like a
charme!!!!!
is your linux version of php desktop still working?
thank you so much for your support & help
cheers
tomek
Czarek Tomczak ***@***.***> schrieb am Do., 27. März 2025,
11:58:
… I can't find debug.log file
—
Reply to this email directly, view it on GitHub
<#370 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BNENUJOC4QL3NBXHJI4LUYL2WPDS5AVCNFSM6AAAAABZZOAVICVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENRTHE2DCMY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
But it should work with alloy as well. I suspect something is crashing or window.close is called implicitilly. If I can see logs I can tell more. |
Beta Was this translation helpful? Give feedback.
-
can you see the debug.log file? i attached it here one more time...
*Thomas Holst*
Egertenstrasse 19a
D-79664 Wehr
Tel : +49 7762 565 1925
***@***.*** ***@***.***>
https://tomeksblog.eu <https://hopto.selfhost.co>
Diese E-Mail inklusive aller Anlagen ist ausschließlich für den Adressaten
bestimmt und enthält möglicherweise vertrauliche Informationen. Falls der
Empfänger dieser Nachricht nicht der beabsichtigte Adressat oder ein für
den Mail-Zugang zuständiger Mitarbeiter oder Vertreter ist, werden Sie
hiermit darauf aufmerksam gemacht, dass jede Weitergabe, Verteilung,
Vervielfältigung oder sonstige Nutzung dieser Nachricht oder ihrer Anlagen
verboten ist. Wenn Sie diese Nachricht aus Versehen erhalten haben,
informieren Sie bitte den Absender per E-Mail und löschen Sie diese E-Mail
aus Ihrem Computer.
This e-mail message and all attachments transmitted with it are intended
solely for the use of the addressee and may contain legally privileged and
confidential information. If the reader of this message is not the intended
recipient, or an employee or agent responsible for delivering this message
to the intended recipient, you are hereby notified that any dissemination,
distribution, copying, or other use of this message or its attachments is
strictly prohibited. If you have received this message in error, please
notify the sender immediately by replying to this message and please delete
it from your computer.
Am Do., 27. März 2025 um 13:19 Uhr schrieb Czarek Tomczak <
***@***.***>:
… But it should work with alloy as well. I suspect something is crashing or
window.close is called implicitilly. If I can see logs I can tell more.
—
Reply to this email directly, view it on GitHub
<#370 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BNENUJPGVYL3QK56LQDNJET2WPNDBAVCNFSM6AAAAABZZOAVICVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENRUGAZDCMY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
No. You have to attach file using github interface. |
Beta Was this translation helpful? Give feedback.
-
sorry, i was attaching it to my email replies 😇
Czarek Tomczak ***@***.***> schrieb am Do., 27. März 2025,
15:50:
… No. You have to attach file using github interface.
—
Reply to this email directly, view it on GitHub
<#370 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BNENUJP7S6KOMIBNVIYSHF32WP6YTAVCNFSM6AAAAABZZOAVICVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENRUGIYDOOA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
here you are with the log ... |
Beta Was this translation helpful? Give feedback.
-
From logs it looks like it crashed. Last logs show that Chromium launched sub-process to unpack zip file (is this something your js code does?) I see that you have spaces in path. Another user reported that this is causing issue for him. See #352 Try putting phpdesktop in a path that doesn't contain any spaces. However the crash doesn't seem related to that. This upstream CEF issue may be related: They say it's caused by missing pdh.dll library. What OS are you running? |
Beta Was this translation helpful? Give feedback.
-
good morning, hm, i am testing it on windows 10: Gerätename funFactory Edition Windows 10 Pro the only space in path i have is from windows user name, which i redirected to my d: disk. i am not using any .zip features in my app. i have now implemented the windows and the mac php desktop with my app. how about the linux one? are you still kind of supporting it? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
hi czarek,
i played deeply and thoroughly with your php desktop to get my php app running. BUT i discovered for example that the js command:
setTimeout(function () { location.reload(); }, 1000);
let your mongoose to close the entire php desktop. is there any change to start php desktop to utilize the internal php web server, i.e.
php -S localhost:9090
?cheers & thank you for your feedback
tomek
Beta Was this translation helpful? Give feedback.
All reactions