From owner-freebsd-questions@FreeBSD.ORG Wed May 31 02:18:16 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 EC13216AB22 for ; Wed, 31 May 2006 02:18:16 +0000 (UTC) (envelope-from aaron@aaronholmes.net) Received: from evildomain.org (adsl-68-125-35-48.dsl.irvnca.pacbell.net [68.125.35.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0258743D46 for ; Wed, 31 May 2006 02:18:15 +0000 (GMT) (envelope-from aaron@aaronholmes.net) Received: by evildomain.org (Postfix, from userid 1013) id CDE08B5F; Sun, 28 May 2006 21:10:33 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on evildomain.org X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.1 Received: from [192.168.1.99] (router.evildomain.org [192.168.1.1]) by evildomain.org (Postfix) with ESMTP id 4350C436; Sun, 28 May 2006 21:10:33 -0700 (PDT) Message-ID: <447A7444.9050804@aaronholmes.net> Date: Sun, 28 May 2006 21:10:44 -0700 From: Aaron Holmes User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Kevin Kinsey References: <447A6187.9060701@daleco.biz> In-Reply-To: <447A6187.9060701@daleco.biz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, Marwan Sultan Subject: Re: PHP viewing in local brwoser. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 May 2006 02:18:17 -0000 Kevin Kinsey wrote: > Marwan Sultan wrote: >> Hello Gurus, >> >> I'm On FreeBSD 6.1R, apache-2.2, php5, installed plus KDE3 latest >> and mozilla. >> AddHandler cgi-script .cgi .pl .php line is enabled in httpd.conf >> >> basically, i'm learning php so im very new to it. >> I used Quanta/KDevelop to create my php file. >> >> But from the local machine when i try to browse locally (using any >> KDE browser) php file, >> return blank in the browser, and nothing shows!. >> the .pl extention is added to apache in the addhandler, so it should >> excute, >> > > > PHP = "People Hate PERL" ... are you sure you don't want ".php" > there? > > >> Any help please? >> If I create any .php using any editor, how do i see the result of >> the file locally ? >> whats wrong? >> >> Thank you >> Marwan > > You can use the command line "php script.php" and it will execute it for you. You can also open a browser and point it at your local webserver, ie: "lynx localhost/dir/script.php" Other than that, I do not believe there is a way to view the results of your script, and it has to be passed through the php engine.