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
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?
Yes, I know I'm about as subtle as being hit by a bus..(\\.\ Aug08)
Yep... I say it like I see it, even if it is like a baseball bat in the nutz... (\\.\ Aug08)
I want to leave this world the same way I came into it, Screaming, Incontinent & No memory!
I laughed that hard I burst my colostomy bag... (\\.\ May03)
Life for some is like a car accident... Mine is like a motorway pile up...
Problems with Vista? :: Getting Cryptic wid it. :: The 'C' word! :: Whois?
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)