Page 1 of 1

running local batch files from server (IIS and PHP)

Posted: Tue Mar 28, 2006 2:10 pm
by ogvelarde
feyd | Please use

Code: Select all

and

Code: Select all

tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


hello php gurus,

i tried below script in my local computer (XP Pro SP2, IIS, PHP) and it's working smoothly but when I update our development server, it doesn't work (it doesn't show anything at all). The objective of that script is to upload some files to a Secured site (https). We are using Secure Transport (from Tumbleweed company) application because this is the only sftp apps that has can get in to a https (with certificates) and that is what the "upload.bat" is doing, executing the stclient.exe.

Code: Select all

<?php
$t = 'upload.bat';
$test = `$t`;
echo "<pre>$test</pre>";
?>
could you please help to figure out the problem(s) on this? if you have some faster way of solving my problem, will surely appreciate your response.

Thanks a lot in advance.


feyd | Please use

Code: Select all

and

Code: Select all

tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Wed Mar 29, 2006 2:46 am
by jrd
try

Code: Select all

<?php
$t = 'upload.bat';
$test = $t;
echo "<pre>$test</pre>";
?>