I have a script that I use via the windows command line all the time, and it works perfectly. I call it with a command line like:
c:\php\php -f invoice.php <inv #> <email address>
and using fpdf it creates a pdf for that invoice number and emails it to the address. Works perfectly, but now I'm trying to get it working from the browser where it would go www.address.com\invoice.php?invnum=<inv #> and it's just dying for some reason. I put lots of echos in to nail down the spot and it's in the first lines of the includes.
include('./dbcon.php');
define('FPDF_FONTPATH','./font/');
require('./fpdf.php');
include('./addons/rounded_rect2.php');
include('./addons/mc_table.php');
include('./fpdf_protection2.php');
include('./addons/hf.php');
include('./class.phpmailer.php');
The two includes marked with ** cause the script to die in the browser, yet work fine from the command line, and I can't figure out why. I'd guess the paths, except the other ones work fine with the exact same pathing structure.
Since the last time I actually pulled up an invoice in a browser, I have installed cURL/libcurl and PEAR to get Spreadsheet_Excel_Output support, but again, I find it hard to believe it's one of those things when the scripts work fine via the command line.
Anyone have any ideas?