How to install FPDF in Windows Azure

May 14, 2013 at 12:42 AM
Hi,

I've been trying to install FPDF (fpdf.org) on Windows Azure. I have already succeeded with a local server (XAMPP) and everything works.

Now, when I try to install on Windows Azure using WebMatrix, nothing happens.

Here's what I've done :

I uploaded the FPDF files on the website folder. Then I created a main page (index.php) and wrote a simple example using FPDF.
<?php
require('../[FPDF folder]/fpdf.php');

$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->Output();
?>
I don't think that the code is wrong (I tested with my local server XAMPP and it worked), however maybe I forgot to configure something on the Windows Azure configuration page.

Someone suggested that I had to do stuff with the "App settings" in the configure page; however I have no idea what I should put there regarding FPDF.

Anyone knows how to fix my problem ?
Thanks!

Edit1 : The output should be a pdf, but I get a blank web page.