#37701 [Bgs]: fopen/file_get_contents fails on opening files over FTP

From: Date: Mon, 05 Jun 2006 14:41:57 +0000
Subject: #37701 [Bgs]: fopen/file_get_contents fails on opening files over FTP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-98044@lists.php.net to get a copy of this message
ID: 37701 User updated by: ionut dot aivanesei at amdocs dot com -Summary: fopen/file_get_contents failes on openning files over FTP Reported By: ionut dot aivanesei at amdocs dot com Status: Bogus Bug Type: FTP related Operating System: Solaris PHP Version: 5.1.4 New Comment: I know that, but do you have a solution or a workaround? I really cannot continue with this error and I don't know how to avoid it. Any help will be much appreciated. Thanks, Ionutz Previous Comments: ------------------------------------------------------------------------ [2006-06-05 14:37:22] tony2001@php.net Duplicate of bug #35765. ------------------------------------------------------------------------ [2006-06-05 14:12:26] ionut dot aivanesei at amdocs dot com it is the default FTP server which comes with SunOS 5.x ------------------------------------------------------------------------ [2006-06-05 13:53:37] tony2001@php.net What kind of FTP server is that? ------------------------------------------------------------------------ [2006-06-05 13:41:59] ionut dot aivanesei at amdocs dot com Description: ------------ I cannot use fopen/file_get_contents on Solaris over FTP (the same is working fine in HP-UX, AIX). Reproduce code: --------------- <?php echo file_get_contents('ftp://...@server/filename'); ?> Expected result: ---------------- contents of 'filename' should be printed Actual result: -------------- files is not opened and a warnign is shown: Warning: file_get_contents(ftp://...@server/filename) [function.file-get-contents]: failed to open stream: FTP server reports 500 'SIZE /filename': command not understood. in script.php on line 3 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37701&edit=1

« previous php.bugs (#98044) next »