capsx Posted May 12, 2006 Report Share Posted May 12, 2006 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 More sharing options...
capsx Posted May 14, 2006 Author Report Share Posted May 14, 2006 neviens nekad nav to darijis ? neticu =[ Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 15, 2006 Report Share Posted May 15, 2006 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 More sharing options...
GedroX Posted May 15, 2006 Report Share Posted May 15, 2006 Please note that register_globals cannot be set at runtime. Link to comment Share on other sites More sharing options...
capsx Posted May 15, 2006 Author Report Share Posted May 15, 2006 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 More sharing options...
Recommended Posts