get app url > start if (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) || isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') { $ssl = 'https'; } else { $ssl = 'http'; } $app_url = ($ssl ) . "://".$_SERVER['HTTP_HOST'] //. $_SERVER["SERVER_NAME"] . (dirname($_SERVER["SCRIPT_NAME"]) == DIRECTORY_SEPARATOR ? "" : "/") . trim(str_replace("\\", "/", dirname($_SERVER["SCRIPT_NAME"])), "/"); //--->get app url > end header("Access-Control-Allow-Origin: *"); ?> Template
| PDF With Custom Footer
Invoice #: 123
Created: January 1, 2015
Due: February 1, 2015
Sparksuite, Inc.
12345 Sunny Road
Sunnyville, CA 12345
Acme Corp.
John Doe
john@example.com
Payment Method Check #
Check 1000
Item Price
Website design $300.00
Hosting (3 months) $75.00
Domain name (1 year) $10.00
Total: $385.00