/    Sign up×
Community /Pin to ProfileBookmark

remote execution using PHP

Hi all,
I’ve a requirement to talk to a remote server(Windows) from my linux server on wich PHP is running. essentially, I’ll have to do something like this, on the push of a button I need to capture stuff, say text from the client’s browser text box and transfer the text to a file in the windows server. any Ideas? Please let me know.

Thanks,
Karthik

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@hastxDec 13.2007 — first things first. Is your windows server running web services? and if not, is it at least on the same network?
Copy linkTweet thisAlerts:
@MrCoderDec 14.2007 — Use FTP from the linux box to windoz
Copy linkTweet thisAlerts:
@karthik_jscriptauthorDec 17.2007 — ok, let me get to the specifics, my windows server is not running any web services. my linux box runs web services, I'm planning to execute any windows specific commands on the windows box through a remote exec from php. I will also be creating files and dirs in the windows box through remote exec from php on my linux box. even I was thinking of ftp, but before that I wanted to check out any other available methods.
Copy linkTweet thisAlerts:
@hastxDec 19.2007 — FTP or SSH is your best (easiest) option.

The only way to use PHP to interact with a windows box NOT running web services would be through samba. If you mount the windows share to the linux box (in a web accessible directory) you can use php to run the commands to make directories and files.

I never tested the exact scenario, but I have used network shares as web directories before. Of course this is all assuming your boxes are on the same network.
Copy linkTweet thisAlerts:
@mrshellyDec 19.2007 — u can if u want...

ftp ssh

a file operate interface

web service

json

post agent

and so on....
×

Success!

Help @karthik_jscript spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...