/    Sign up×
Community /Pin to ProfileBookmark

connection establishment with other server (linux or VM)

I am new to php and i would like to know few functionalities.

1)I would like to is there way to connect to other server(means other than MYSQL server)?
If it so then how can i do that.

2) Is there any possiblities to connect with other server like Linux or VM and fetch or read the file. if we have kindly share on how..

Thank you in advance for your sharing your thoughts.

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@NogDogAug 28.2014 — You're probably looking at FTP for exchanging files with another server. You could also look at SSH2 for more options (including SFTP).
Copy linkTweet thisAlerts:
@rootAug 29.2014 — You also have sockets as well cURL, you need to consider what it is you are trying to achieve. Is the server on the same network or is it a remote server?
Copy linkTweet thisAlerts:
@KryDosAug 29.2014 — Hi [B]Radhakrishna115[/B],
I would like to is there way to connect to other server(means other than MYSQL server)?[/QUOTE]
Sure. You can connect to everything you want. For example if you want to connect to MongoDB you have to use MongoDB's protocol. You can use it on the binary level (using self-written C extension) or you can use "mongodb-php-driver" (MongoD? class.

Or if you want to connect to Elastic Search you can use HTTP protocol and cURL library.

Is there any possiblities to connect with other server like Linux or VM and fetch or read the file. if we have kindly share on how..[/QUOTE]
Sure. You can connect to other computer and read files. But reading files is a one of the all possible functionality. And for this functionality was created FTP protocol (not only for reading of course. You can read/write/delete/edit files). Or if you want to connect to other computer and execute shell commands, you can use SSH protocol.

If you want something special you have to create your's protocol.
×

Success!

Help @Radhakrishna115 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,
)...