running local batch files from server (IIS and PHP)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ogvelarde
Forum Newbie
Posts: 1
Joined: Tue Mar 28, 2006 1:59 pm

running local batch files from server (IIS and PHP)

Post 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]
jrd
Forum Commoner
Posts: 53
Joined: Tue Mar 14, 2006 1:30 am

Post by jrd »

try

Code: Select all

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