Path: csiph.com!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Simon Newsgroups: comp.lang.php Subject: Re: Printing out or displaying for debugging Date: Wed, 12 Dec 2012 08:18:25 +0200 Lines: 22 Message-ID: References: <311acfc8-1a24-4cd6-93aa-3bfc1407e840@b16g2000vbh.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net rZCvb/vzQr/ToHMWU7AOqAXQ436D+WWYxBXU88zz22G21FKwkt8xmZ6n7CNPXN7aO5 Cancel-Lock: sha1:8y7CnuKozwtX+8XHCyOZAgwZULY= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: Xref: csiph.com comp.lang.php:7782 > > echo ""; > > then comment out/remove that code when done. Just 'View Source...' to > see it. Unless $var contains html code, (maybe what the OP is trying to debug in the first place), and that could end up causing a whole lot of mess, (making it more difficult to debug). A local site, is a far better option. I prefer to install php+Apache manually but that's just a mater of choice. Otherwise, a carbon copy of the page with the debug code on another page is a better/safe/prettier? option. Simon