Stupid FTP Grr - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Stupid FTP Grr (/showthread.php?tid=2364) |
Stupid FTP Grr - El Forum - 07-31-2007 [eluser]Phil Sturgeon[/eluser] Right, having a bad day with some FTP and need a spot of help if you can. I have added a FTP download function into my MY_FTP class to download from one server to my local one. However the code below: Code: function download($rempath, $locpath, $mode = 'auto') Returns the error: Quote:Severity: Warning However it shouldnt be complaining about /public_html/tmp/7782c5f1954255628bb10c26d8a4597f.flv as im trying to grab the file from the flash media server, which is /sdfskfhsj/vportal1/streams/_definst_/ so... what the hell? How do I fix this error? Also, why does the code: Code: $this->ftp->upload('/public_html/tmp/7782c5f1954255628bb10c26d8a4597f.flv', give me a "cant find source file" error when im bloody certain that file is there?!! The remote folder may be incorrect, but the local folder is damn right! Stupid FTP Grr - El Forum - 07-31-2007 [eluser]coolfactor[/eluser] Okay, calm down pyro, we don't want you starting any fires now. :-) I'll do some digging around for you. Stupid FTP Grr - El Forum - 07-31-2007 [eluser]coolfactor[/eluser] Code: '/public_html/tmp/7782c5f1954255628bb10c26d8a4597f.flv' I'm concerned about that leading slash. That might be telling the FTP server to start at the root, and look for a folder called "public_html". Try removing that leading slash to see if there's any improvement. Stupid FTP Grr - El Forum - 08-01-2007 [eluser]Phil Sturgeon[/eluser] In both cases (upload and download) no trailing slash has no effect. Code: // Upload video to Media Server List files works but the other two give me constant crap (obviously im only running one at a time, commenting the others out). Stupid FTP Grr - El Forum - 08-01-2007 [eluser]coolfactor[/eluser] You say the "list" works, but what the heck is the deal with this path: Code: '/gdf3sv560h/vportal1\streams\_definst_' Why the forward and backward slashes? Stupid FTP Grr - El Forum - 08-01-2007 [eluser]coolfactor[/eluser] Are you still getting the "open_basedir restriction in effect" in both cases? Please elaborate on what you get for downloading, and what you get for uploading, separately. Have you researched the "open_basedir restriction in effect" issue? There's plenty online about it. Stupid FTP Grr - El Forum - 08-01-2007 [eluser]Phil Sturgeon[/eluser] Thats the media server im connecting too. I want to move a flv file from in there, to the /public_html/tmp/ on my server. I also need to be able to upload to that server too, but cant get files going either way! Stupid FTP Grr - El Forum - 08-01-2007 [eluser]johnwbaxter[/eluser] Have you tried setting open_basedir in your conf to none? I hate open_basedir with a passion. Stupid FTP Grr - El Forum - 08-01-2007 [eluser]Crimp[/eluser] FTP. Grrr. Anyone still working on the IPoAC CI library? Stupid FTP Grr - El Forum - 08-01-2007 [eluser]Phil Sturgeon[/eluser] Carrier pidgeon might be quicker than this crap. OK, lets start with why I cant upload. If I connect to my local server as the FTP server and do this... Code: print_r($this->ftp->list_files('/public_html/tmp')); then I see all my files, includuing 7782c5f1954255628bb10c26d8a4597f.flv. If I copy that exact path in, and connect to the media server in FTP then it says "Unable to find source". Which makes me think... wtf? Code: $this->ftp->upload('/public_html/tmp/7782c5f1954255628bb10c26d8a4597f.flv', |