logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 02-04-2008, 02:49 PM   #1
cocoonfx
cocoonfx's Avatar
 
Join Date: Nov 2006
Location: Tamworth,UK
Posts: 576
Default Creating PDF documents

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
cocoonfx is offline   Reply With Quote
Old 02-04-2008, 03:04 PM   #2
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

nicely explained

maybe DW doesnt recognise the function!

looking into it
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 02-04-2008, 03:24 PM   #3
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

if you do a phpinfo do you see PDF support in there
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 02-06-2008, 02:05 PM   #4
cocoonfx
cocoonfx's Avatar
 
Join Date: Nov 2006
Location: Tamworth,UK
Posts: 576
Default

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
cocoonfx is offline   Reply With Quote
Old 02-06-2008, 04:49 PM   #5
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

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
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 02-06-2008, 05:59 PM   #6
cocoonfx
cocoonfx's Avatar
 
Join Date: Nov 2006
Location: Tamworth,UK
Posts: 576
Default

Hello DJ


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

Keep you posted.
cocoonfx is offline   Reply With Quote
Old 02-06-2008, 06:00 PM   #7
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

just do a phpinfo on your web host
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 02-06-2008, 06:12 PM   #8
cocoonfx
cocoonfx's Avatar
 
Join Date: Nov 2006
Location: Tamworth,UK
Posts: 576
Default

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.
cocoonfx is offline   Reply With Quote
Old 02-06-2008, 07:58 PM   #9
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

ask the host if they will look into installing it
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 02-06-2008, 11:07 PM   #10
cocoonfx
cocoonfx's Avatar
 
Join Date: Nov 2006
Location: Tamworth,UK
Posts: 576
Default

Tomorrow there going to install it.
cocoonfx is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:19 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com