From owner-freebsd-questions@FreeBSD.ORG Thu Jul 3 02:46:54 2003 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 50AD437B401 for ; Thu, 3 Jul 2003 02:46:54 -0700 (PDT) Received: from juice.thebigchoice.com (pc1-nott2-3-cust18.nott.cable.ntl.com [80.4.204.18]) by mx1.FreeBSD.org (Postfix) with SMTP id 9399A43FCB for ; Thu, 3 Jul 2003 02:46:52 -0700 (PDT) (envelope-from matt@thebigchoice.com) Received: (qmail 12511 invoked from network); 3 Jul 2003 09:46:53 -0000 Received: from localhost.proweb.net (HELO thebigchoice.com) (127.0.0.1) by juice.thebigchoice.com with SMTP; 3 Jul 2003 09:46:53 -0000 Message-ID: <3F03FB8A.9080700@thebigchoice.com> Date: Thu, 03 Jul 2003 10:46:50 +0100 From: Matt Heath User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030425 X-Accept-Language: en, en-us MIME-Version: 1.0 To: questions@freebsd.org References: <20030702201929.79497.qmail@web12604.mail.yahoo.com> <07e301c340ec$1159e770$1b41d5cc@nitanjared> In-Reply-To: <07e301c340ec$1159e770$1b41d5cc@nitanjared> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Which server-side programming should i choose. 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: Thu, 03 Jul 2003 09:46:54 -0000 > > >PHP!! All the way...easiest, free, likely to be more >secure than Perl if used as Apache module than CGI. > More secure, how so? mod_php runs as the same user as the Web Server, giving file permission to look at any file the web server can. Safe_dirs are turned off by default I've been hosted on commercial sites where I could easily read the files of the other virtually hosted users, able to rip database passwords and steal source code. (reading through some of that code taught me about PHP class semantics but that's another story 8) >Beautiful C-like syntax (/usr/src/* might even make >more sense to you after learning it...) great user >community. > beautiful? the function names alone are a pile of cruft upon cruft take a look here : http://www.php.net/manual/en/ref.array.php or http://www.php.net/manual/en/ref.strings.html PHP reveals what it is - a hotch potch of stuff built one function at a time by a hundred monkeys string *strchr* ( string haystack, string needle) mixed *str_replace* ( mixed needle, mixed new_needle, mixed haystack) chop -- Alias of *rtrim()* If you want beauty, use python I'm a professional PHP programmer of 5+ years; secure, elegant and beautiful are not words I would instantly think of. Easy to learn, with a big target painted on your shoes. Ever seen something like this : $r = mysql_execute("select * from table_1 where id=$_GET[id];");