Re: Trying to get PEAR working for the first time
| From: | Greg Beaver | Date: | Mon, 13 Sep 2004 01:44:09 +0000 |
| Subject: | Re: Trying to get PEAR working for the first time | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14505@lists.php.net to get a copy of this message | ||
add
error_reporting(E_ALL);
at the top of the page and try again, it may elucidate a problem.
Another debugging technique I always try is taking an "echo 'here';" statement and putting it at line after line to determine how far the code is getting.
Or you could download the evaluation version of Zend IDE, or PHPEdit that has a built-in debugger and just step through it. Saves loads of "echo 'here'" BS time.
Greg
Leegold wrote:
leegold wrote:Just a note, it might be diagnostic: when I add: require_once "C:\php\PEAR\HTML\Table.php"; To a perfectly fine already working php page, it turns that page blank also.<?php $data = array( '0' => array("Bakken", "Stig", "", "stig@example.com"), '1' => array("Merz", "Alexander", "alex.example.com", "alex@example.com"), '2' => array("Daniel", "Adam", "", "") );I tried as you suggested above - same result, I get a blank page. snip...require_once "C:\php\PEAR\HTML\Table.php";// You don't need and shouldn't use the full path. Instead, try this: require_once "HTML/Table.php"; // forward and backslash don't make a difference, afaik, on windows