Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Webdav connection / fsockopen

Status
Not open for further replies.

pilgie

Technical User
May 2, 2006
16
GB
Hi,

I am trying to open a socket using fsockopen. I need to open a socket to:


is it possible to do this with fsockopen?

I am using a webdev class that does not take into consideration the path after the port number. Am I being silly and missing something.

I need to connect to the URL above and use webdav to manipulate files.

Any help or suggestions welcome

Thanks in advance,

Pilgie.
 
you can use fsockopen.

equally you should be able to use the php-webdav pecl module.
 
Thanks!

My fsockopen code looks like this:

$this->_fp = fsockopen ($this->_server, $this->_port, $this->_errno, $this->_errstr, $this->_socket_timeout);

How can I specify the path after the port number?
 
you can't. sockets do not open to a path, they open to a server.
once a socket is open, you use fopen etc to open and manipulate files along the path.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top