Bug #9688 Updated: FTP_PUT / FOPEN

From: Date: Sat, 12 Jan 2002 11:58:10 +0000
Subject: Bug #9688 Updated: FTP_PUT / FOPEN
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-76758@lists.php.net to get a copy of this message
ID: 9688 Updated by: lobbin Reported By: ivarness@yahoo.no Old Status: Open Status: Feedback Bug Type: IIS related PHP Version: 4.0.4 New Comment: Can you try out 4.1.1 and see if the problem still exists? Previous Comments: ------------------------------------------------------------------------ [2001-05-21 00:32:54] ivarness@yahoo.no It might be for all I know , a permission problem which occure when one are using maped network drives/virtual hosts under IIS. I can't say either as I was using a remote host(or web hoster). If it's the case it shouldn't be fixed anyway?? I think it's a bit scame cause if your working on a huge project and you can't upload file where the point of using it all?? Anyway people have been asking for work arounds, I can't say I know of a work around which guarantees success , but I made a script to test file-uploades with different approaches (ftp_functions, fopen("ftp://....") , copy()) Main purpose of this was cause I found myself in a postion where I needed to change web-hoster because of this bug, (fortunately I'm not paying for this service) and I wanted to know if next web-hoster would have same problem. The test script can be found at http://www.valar.f2s.com , hope it helps! Meanwhile lets hope for a bug fix!!? -- Best Regards, IN ------------------------------------------------------------------------ [2001-05-18 04:30:55] jmoore@php.net The problem here seems that PHP cant access the drive or file. Have you checked permissions? Is G:\ a mapped network drive? Is the path correct?? Please check these, then try latest CVS (snapshots for win32 are avalible here: http://www.zend.com/snapshots ) - James ------------------------------------------------------------------------ [2001-03-11 17:49:57] ivarness@yahoo.no I'm working against a IIS web server with PHP 4.0.4 It seems that both ftp_up and fopen causes the same problem, not allowing you to upload files. On the attempt to open sourcefile/submited file I get following errors; with ftp_up: Warning: error opening G:\\mysite\\mysite\\gfx\\icon_editor_url.gif in ftp.php on line 19 with fopen: Warning: fopen("G:\\mysite\\mysite\\gfx\\icon_editor_list.gif","rb") - No such file or directory in uploadfile.php on line 7 hence under linux, I have tested the fopen with php4.0.b3 and it seems to work. Question me for samplecode if needed. Regards, IN. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=9688&edit=1

« previous php.dev (#76758) next »