...

View Full Version : how to making pdf files



cuchandoo
08-15-2007, 11:28 AM
Hi,
I m newbie to the php,
I copied a :confused: code and pasted it in dreamweaver and opened it in my local host.
still i got these problems!
Can u please rectify my probs?
The Program is
<?php
require('fpdf.php');

$pdf=new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->Output();
?>

and the out put is:

Warning: require(fpdf.php) [function.require]: failed to open stream: No such file or directory in C:\wamp\www\pdf\pdf.php on line 2

Fatal error: require() [function.require]: Failed opening required 'fpdf.php' (include_path='.;C:\php5\pear') in C:\wamp\www\pdf\pdf.php on line 2

can u resolve this problem........And can u send me the code for the pdf conversion,if the time and thigs avails.
Thank u
Chandoo.M.v

felgall
08-15-2007, 11:51 AM
Sounds like you haven't uploaded the fpdf.php file to your site or have uploaded it to the wrong place.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum