PDA

View Full Version : Creating PDF documents


cocoonfx
02-04-2008, 02:49 PM
Hello


I am trying to get php to create a PDF document, i am using a PHP 5 book and i know my web server is using PHP 5 but i have noticed the code from the book does not look right in the sense that instead of the code showing blue its black.

Book Code:-

pdf_begin_document($pdf,"","");

I have used the help function in Dreamweaver cs3 and there this statement is not found.

i have

pdf_begin_template(,,);

Is the book incorrect?

Regards
Cocoonfx

davidj
02-04-2008, 03:04 PM
nicely explained

maybe DW doesnt recognise the function!

looking into it

davidj
02-04-2008, 03:24 PM
if you do a phpinfo do you see PDF support in there

cocoonfx
02-06-2008, 02:05 PM
Hello


I have looked through my phpinfo and i can not see anything to do with PDF. I can upload them and they view.


http://www.cocoonfxmedia.co.uk/phpinfo.php

davidj
02-06-2008, 04:49 PM
uploading and creating them are different processes

PHP does support the creation of PDF's but the module has to be installed

check WAMP for the installed module and switch it on if its off

you can access the modules from the WAMP icon in the sys tray

cocoonfx
02-06-2008, 05:59 PM
Hello DJ


I am just checking with my webhost now to see if they have it installed.

Keep you posted.

davidj
02-06-2008, 06:00 PM
just do a phpinfo on your web host

cocoonfx
02-06-2008, 06:12 PM
Nope they have not got the PHPlib installed.... what a pain in the a**se.

Hum i surpose i can instead of php have what i want in the body of an email thats what the airlines do now.

davidj
02-06-2008, 07:58 PM
ask the host if they will look into installing it

cocoonfx
02-06-2008, 11:07 PM
Tomorrow there going to install it.

davidj
02-07-2008, 12:10 AM
nice one mate