Jump to content
php.lv forumi

konekteet pie webdav ar php


capsx

Recommended Posts

hi visiem!

 

vot kac var man paraadiit kaa ar php konektee pie webdav.

visadi meghinaju, nekaa nesanaak

 

ar webdav-pear ar ne, vainu kauko liiki daru:

 

<?php

 

ini_set('register_globals','Off');

ini_set('display_errors','On');

error_reporting(E_ALL);

 

define('HTTP', '/HTTP');

 

 

$name = 'webdavs://user:pass@url/file.pdf';

 

require_once "HTTP/WebDAV/Client/Stream.php";

 

if (!HTTP_WebDAV_Client_Stream::register()) {

PEAR::raiseError("couldn't register WebDAV stream wrappers");

}

 

$dh = fopen($name, 'a');

 

?>

Link to comment
Share on other sites

capsx--> slinkums ir pamekleet?

 

nesmu ar to njeemies bet cik atceros tad PHP ini

bija

jabuut 2 rindinjaam

respektiivi lai straadaatu korekti jabuut ON....

 

always_populate_raw_post_data=on/off

allow_webdav_methods=on/off

Link to comment
Share on other sites

var jau arii latviski :P

 

just copied some piece of old code =]

 

capsx--> slinkums ir pamekleet?

 

nesmu ar to njeemies bet cik atceros tad PHP ini

bija

jabuut 2 rindinjaam

respektiivi lai straadaatu korekti jabuut ON....

 

always_populate_raw_post_data=on/off

allow_webdav_methods=on/off

 

Grey: es jau iz4akareejos liidz riebumam, tapeec jau ar te jautaaju

 

allow_webdav_methods : Allow handling of WebDAV http requests within PHP scripts (eg. PROPFIND, PROPPATCH, MOVE, COPY, etc.). This directive does not exist as of PHP 4.3.2. If you want to get the post data of those requests, you have to set always_populate_raw_post_data as well.

 

always_populate_raw_post_data gan bija off

Link to comment
Share on other sites

×
×
  • Create New...