PHP Classes

create PHP PDF

Recommend this page to a friend!

      PHP PDF Table using FPDF  >  PHP PDF Table using FPDF package blog  >  How to Create a PHP P...  >  All threads  >  create PHP PDF  >  (Un) Subscribe thread alerts  
Subject:create PHP PDF
Summary:doesn't work
Messages:4
Author:Daniel Van Audenhove
Date:2021-05-21 22:10:01
 

  1. create PHP PDF   Reply   Report abuse  
Picture of Daniel Van Audenhove Daniel Van Audenhove - 2021-05-21 22:10:01
I installed on my server, and after running the example file I just get an empty screen.

  2. Re: create PHP PDF   Reply   Report abuse  
Picture of Stefan Kientzler Stefan Kientzler - 2021-05-22 08:41:26 - In reply to message 1 from Daniel Van Audenhove
turn on the PHP error reporting:

ini_set('display_errors', 1);
error_reporting(E_ALL);

to get any error message, what's going wrong!

Stefan

  3. Re: create PHP PDF   Reply   Report abuse  
Picture of Daniel Van Audenhove Daniel Van Audenhove - 2021-05-22 20:58:16 - In reply to message 2 from Stefan Kientzler
Those are the messages I got when submitting the page:

GEThttp://localhost:8080/createpdf/XFPDFExample.php
[HTTP/1.0 500 Internal Server Error 11ms]

GEThttp://localhost:8080/favicon.ico
[HTTP/1.1 404 Not Found 3ms]

I am working with an USB-webserver to test new stuff that seems interesting to me.

  4. Re: create PHP PDF   Reply   Report abuse  
Picture of Stefan Kientzler Stefan Kientzler - 2021-05-24 11:49:39 - In reply to message 3 from Daniel Van Audenhove
Are you sure, this server works correctly?

The internal server error and looking for favicon.ico suggest something other than any script error!

Have you tried a simple php script containing only phpinfo() to show, if PHP works and what version and modules are available:

<?php
phpinfo();

save this in a file info.php and run it on your server. So you can see, if PHP is working fine...