Re: [PHP] Going crazy with include & require not working

2011-06-08 Thread Richard Quadling
On 8 June 2011 10:21, Richard Quadling wrote: > On 7 June 2011 22:17, Brian Dunning wrote: >> Thanks, this helped me solve it. FPDI extends a class in FPDF, so I simply >> had to reverse the order in which I call them and all is hunky dory. > > I would take a look at using an autoloader > (http:

Re: [PHP] Going crazy with include & require not working

2011-06-08 Thread Richard Quadling
On 7 June 2011 22:17, Brian Dunning wrote: > Thanks, this helped me solve it. FPDI extends a class in FPDF, so I simply > had to reverse the order in which I call them and all is hunky dory. I would take a look at using an autoloader (http://www.php.net/manual/en/language.oop5.autoload.php and h

Re: [PHP] Going crazy with include & require not working

2011-06-07 Thread Brian Dunning
Thanks, this helped me solve it. FPDI extends a class in FPDF, so I simply had to reverse the order in which I call them and all is hunky dory. On Jun 6, 2011, at 5:54 PM, Michael Shadle wrote: > > ini_set('display_errors', 1); > -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Going crazy with include & require not working

2011-06-07 Thread Richard Quadling
On 7 June 2011 04:05, tedd wrote: > At 5:50 PM -0700 6/6/11, Brian Dunning wrote: >> >> Here's my code: >> >> error_reporting(E_ALL); Not all errors are reported using E_ALL. Try error_reporting(-1); Also, check the include files don't then set error_reporting(0) or something like that. -- Ric

Re: [PHP] Going crazy with include & require not working

2011-06-06 Thread tedd
At 5:50 PM -0700 6/6/11, Brian Dunning wrote: Here's my code: error_reporting(E_ALL); require_once('/var/www/mysite/includes/fpdi.php'); require_once('/var/www/mysite/includes/fpdf.php'); I have used fpdf many times and never had a problem with it. I've double checked my pathnames until I'm bl

Re: [PHP] Going crazy with include & require not working

2011-06-06 Thread Michael Shadle
On Mon, Jun 6, 2011 at 5:50 PM, Brian Dunning wrote: > Here's my code: > > error_reporting(E_ALL); > require_once('/var/www/mysite/includes/fpdi.php'); > require_once('/var/www/mysite/includes/fpdf.php'); try adding this too: ini_set('display_errors', 1); I've realized I've had to do that before

[PHP] Going crazy with include & require not working

2011-06-06 Thread Brian Dunning
Here's my code: error_reporting(E_ALL); require_once('/var/www/mysite/includes/fpdi.php'); require_once('/var/www/mysite/includes/fpdf.php'); I have used fpdf many times and never had a problem with it. I've double checked my pathnames until I'm blue in the face. But for some reason, the script