Code: Select all
<?php
require('./pdf/fpdf.php');
$pdf=new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'This is a test.');
$pdf->Cell(60,10,'Powered by FPDF.',0,1,'C');
$pdf->Cell(40,10,'Now is it working?');
$filename="test";
$pdf->Output("/test/" . $filename . ".pdf", 'F');
?>Warning: fopen(/test/test.pdf) [function.fopen]: failed to open stream: No such file or directory in /home/content/d/a/n/danielneesley/html/dj/pdf/fpdf.php on line 1044
FPDF error: Unable to create output file: /test/test.pdf
Would someone walk me through which directory and files need to be set to 777? Many thanks as always.