From owner-freebsd-questions@FreeBSD.ORG Mon Oct 18 09:46:54 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A276516A4CE for ; Mon, 18 Oct 2004 09:46:54 +0000 (GMT) Received: from mail2.swebase.com (mail2.swebase.com [213.80.38.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A70C43D2F for ; Mon, 18 Oct 2004 09:46:53 +0000 (GMT) (envelope-from nocturnal@swehack.se) Received: from 213.80.36.8 ([213.80.36.8]) (authenticated user nocturnal@swehack.se) by mail2.swebase.com (mail2.swebase.com [127.0.0.1]) (MDaemon.PRO.v6.8.5.R) with ESMTP id 4-md50000000339.tmp for ; Mon, 18 Oct 2004 11:46:33 +0200 Message-ID: <41739027.6040903@swehack.se> Date: Mon, 18 Oct 2004 11:43:03 +0200 From: nocturnal User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; ; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Processed: mail2.swebase.com, Mon, 18 Oct 2004 11:46:33 +0200 (not processed: message from valid local sender) X-MDRemoteIP: 213.80.36.8 X-Return-Path: nocturnal@swehack.se X-MDaemon-Deliver-To: freebsd-questions@freebsd.org Subject: Binary/ASCII File upload issues X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2004 09:46:54 -0000 if i do file index.php on a file i uploaded that works just fine with php ran as cgi i get "/path/index.php: a /usr/local/bin/php script text executable" and if i do file index.php on a customers index.php file which i think they uploaded using binary transfer mode i get "script text executable/bin/php" only, the second file doesn't work using php as cgi, i get an internal server error, i know how to fix this but i'm wondering if anyone could explain why this happens on freebsd and if it's related to the ftp transfer --