Here is a simple code I copied froom a tutorial book in order to output PDF files with PHP.
When placed in my browser (after uploading it to my VH DocumentRoot folder, I get the following error :
Is there any folder or library I shold place in my DocumentRoot folder before being able to use the FPDF function? Any help will be greatly appreciated. Thanks in advance!
Herman
PHP Code:
<?
require("../fpdf/fpdf.php");
$pdf =new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial', 'B', 16);
$pdf->Cell(40,10,'Hello Out There!');
$pdf->output();
?>
Warning: require(../fpdf/fpdf.php) [function.require]: failed to open stream: No such file or directory in /home/mmtltlck/public_html/line.php on line 2
Warning: require(../fpdf/fpdf.php) [function.require]: failed to open stream: No such file or directory in /home/mmtltlck/public_html/line.php on line 2
Fatal error: require() [function.require]: Failed opening required '../fpdf/fpdf.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mmtltlck/public_html/line.php on line 2
Warning: require(../fpdf/fpdf.php) [function.require]: failed to open stream: No such file or directory in /home/mmtltlck/public_html/line.php on line 2
Fatal error: require() [function.require]: Failed opening required '../fpdf/fpdf.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mmtltlck/public_html/line.php on line 2
Herman
Comment