sta_maris Posted April 4, 2005 Report Share Posted April 4, 2005 problema sekojosa vajag uploudot failu uz ftp serveri <input type=file name=m_picture size=60> $upload = ftp_put($conn_id, "1.jpg", $m_picture, FTP_ASCII); Visa piekonektesanas un ielogosanas notiek bez problemam tapat ari direktoriju maina un jaunu direktoriju izveide. Bet visi prieki beidzas fie faila uploudosanas. Itka teoretiski kludas nav. Varbut es kaut ko neesmu pareizi pierakstijis. izmeginaju ari FTP_BINARY Link to comment Share on other sites More sharing options...
Venom Posted April 4, 2005 Report Share Posted April 4, 2005 ir tiesības rakstīt uz servera, kāds ir processa id? Link to comment Share on other sites More sharing options...
sta_maris Posted April 4, 2005 Author Report Share Posted April 4, 2005 Nu ja jau izveidot jaunu mapi ir tiesibas tad ari uploudot failu. vismaz manuali nav nekadu problemu Link to comment Share on other sites More sharing options...
hmnc Posted April 4, 2005 Report Share Posted April 4, 2005 chmod dirai uztaisīji? php neļauj taisīt mkdir ar write atribūtiem (tikai owner) un tad jālieto vai nu umask vai chmod, bet tiesa gan nezinu vai šis pats darbojas uz ftp konekciju. Link to comment Share on other sites More sharing options...
spynode Posted April 5, 2005 Report Share Posted April 5, 2005 Fails ir masiivaa $_FILE. Ja tev globaalji ir izsleegti... Link to comment Share on other sites More sharing options...
Venom Posted April 5, 2005 Report Share Posted April 5, 2005 spynode: pavisam netēmā, runa iet par ko citu (failu rakstīšana soketos būtībā) Link to comment Share on other sites More sharing options...
spynode Posted April 6, 2005 Report Share Posted April 6, 2005 Venom pilniigi teemaa. Paskaties, vinjsh to failu suuta caur formu. Un peec tam laadee uz ftp no parasta mainiigaa taa itkaa vinjam buutu iesleegti globaalji. Link to comment Share on other sites More sharing options...
Venom Posted April 6, 2005 Report Share Posted April 6, 2005 aā, ja nu vienīgi... Link to comment Share on other sites More sharing options...
Delfins Posted April 6, 2005 Report Share Posted April 6, 2005 aā, ja nu vienīgi... 16044[/snapback] $m_picture aizvietot ar $_FILES['m_picture']['tmp_name'] tur parametraa jaapadod faila __nosaukums__ , a bet viņš padod masīvu :) Link to comment Share on other sites More sharing options...
Recommended Posts