Problem with php scripting
Hello, I wrote a php script to synchronize local dir with remote dir. The local dir is on a pc with xampp installed, so php is available just from localhost with the browser.
Environment is windows seven.
I'm quite sure that it was working, but unfortunately I had to stop the development for many days and now when I came back to it, it doesn't work.
Here is where it blocks:
system ("\"C:\\Program Files (x86)\\WinSCP\\WinSCP.exe\" /script=C:\mydir\Script\global.txt /log=C:\primarmi\Log\global_log.txt", $exitcode);
It returns 1 for exitcode, so according to https://winscp.net/eng/docs/guide_automation_advanced#external there was an error.
I put all those backslashes according to this: https://www.php.net/manual/en/function.system.php
my global.txt contains this:
Tried to enable loggin, with no luck (or at least, nothing was logged. Is it possible that winscp neither started?)
Any hint on what to do?
Environment is windows seven.
I'm quite sure that it was working, but unfortunately I had to stop the development for many days and now when I came back to it, it doesn't work.
Here is where it blocks:
system ("\"C:\\Program Files (x86)\\WinSCP\\WinSCP.exe\" /script=C:\mydir\Script\global.txt /log=C:\primarmi\Log\global_log.txt", $exitcode);
It returns 1 for exitcode, so according to https://winscp.net/eng/docs/guide_automation_advanced#external there was an error.
I put all those backslashes according to this: https://www.php.net/manual/en/function.system.php
my global.txt contains this:
option batch abort option confirm off open ftp://user:pass@host synchronize local mylocalpath remotepath exit
Tried to enable loggin, with no luck (or at least, nothing was logged. Is it possible that winscp neither started?)
Any hint on what to do?