Different behaviour between command line and call from php application
2023-03-11, 8:43 (This post was last modified: 2023-03-19, 6:05 by Hans Willison. Edit Reason: typo in title )
2023-03-11, 8:43 (This post was last modified: 2023-03-19, 6:05 by Hans Willison. Edit Reason: typo in title )
Hi,
When I create a snapshot from the command line, like so:
then LDView uses all the settings and preferences which I defined previously via the GUI.
When I use the same command from within a php application like so:
When I create a snapshot from the command line, like so:
Code:
C:\>LDView64.exe "temp_3001-4.ldr" -SaveSnapshot="3001-4.png"
then LDView uses all the settings and preferences which I defined previously via the GUI.
When I use the same command from within a php application like so:
PHP Code:
<?php
system('LDView64.exe "temp_3001-4.ldr" -SaveSnapshot="3001-4.png"');
then LDView obviously uses default paramters. What could be a reason for this behaviour. Maybe an issue with environment variables?
Hans
PS: I tried some additional command line preferences to overcome the issue:
PHP Code:
<?php
system('LDView64.exe -SaveZoomToFit=1 -SaveAlpha=1 -AutoCrop=1 -EdgeThickness=5 "temp_3001-4.ldr" -SaveSnapshot="3001-4.png"');