Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2007
    Location
    India,Tanuku,A.P
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question how to making pdf files

    Hi,
    I m newbie to the php,
    I copied a 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

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,619
    Thanks
    0
    Thanked 645 Times in 635 Posts
    Sounds like you haven't uploaded the fpdf.php file to your site or have uploaded it to the wrong place.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •