#37701 [Opn->Fbk]: fopen/file_get_contents failes on openning files over FTP

From: Date: Mon, 05 Jun 2006 13:53:37 +0000
Subject: #37701 [Opn->Fbk]: fopen/file_get_contents failes on openning files over FTP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-98041@lists.php.net to get a copy of this message
ID: 37701 Updated by: tony2001@php.net Reported By: ionut dot aivanesei at amdocs dot com -Status: Open +Status: Feedback Bug Type: FTP related Operating System: Solaris PHP Version: 5.1.4 New Comment: What kind of FTP server is that? Previous Comments: ------------------------------------------------------------------------ [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 (#98041) next »