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.
You're probably looking at FTP for exchanging files with another server. You could also look at SSH2 for more options (including SFTP).
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
How to Ask Questions the Smart Way
(not affiliated with this site, but well worth reading)
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?
[CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]
If you can't think outside the box, you will be trapped forever with no escape...
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" (MongoDB) class.
I would like to is there way to connect to other server(means other than MYSQL server)?
Or if you want to connect to Elastic Search you can use HTTP protocol and cURL library.
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.
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..
If you want something special you have to create your's protocol.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)