6 Replies - 749 Views - Last Post: 01 August 2010 - 11:18 PM Rate Topic: -----

#1 Guest_abcde*


Reputation:

Generating doc using PHP

Posted 27 July 2010 - 12:27 AM

Hi all,

I want to generate a doc using PHP.The doc may contain the data from database + an image + data from an html file.

How can i do it ? Its urgent.

Thanks in advance.
Is This A Good Question/Topic? 0

Replies To: Generating doc using PHP

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3541
  • View blog
  • Posts: 10,238
  • Joined: 08-June 10

Re: Generating doc using PHP

Posted 27 July 2010 - 01:00 AM

well, for database access, use one of PHP’s DB access classes (PDO, MySQLi). to include a file, use one of require or include.

anything else is too unspecific to explain.
Was This Post Helpful? 0
  • +
  • -

#3 aniri  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 54
  • View blog
  • Posts: 657
  • Joined: 24-November 09

Re: Generating doc using PHP

Posted 27 July 2010 - 01:08 AM

Here's a tutorial on writing to files from php. It might help.
Was This Post Helpful? 0
  • +
  • -

#4 Guest_abcde*


Reputation:

Re: Generating doc using PHP

Posted 01 August 2010 - 10:54 PM

View Postaniri, on 27 July 2010 - 12:08 AM, said:

Here's a tutorial on writing to files from php. It might help.


No it didn't help....



Can you give me any other solution...??
Was This Post Helpful? 0

#5 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10572
  • View blog
  • Posts: 39,143
  • Joined: 27-December 08

Re: Generating doc using PHP

Posted 01 August 2010 - 10:59 PM

What is wrong with that solution? Is there something you need clarification on?

Quote

Can you give me any other solution...??

I'm not sure if you are asking for a nudge in the right direction or us to hand you working code, but I'd like to reiterate rule #1. We're happy to help, but we've yet to see any effort on your part for us to help with. :)
Was This Post Helpful? 0
  • +
  • -

#6 Guest_abcdef*


Reputation:

Re: Generating doc using PHP

Posted 01 August 2010 - 11:11 PM

View Postmacosxnerd101, on 01 August 2010 - 09:59 PM, said:

What is wrong with that solution? Is there something you need clarification on?

Quote

Can you give me any other solution...??

I'm not sure if you are asking for a nudge in the right direction or us to hand you working code, but I'd like to reiterate rule #1. We're happy to help, but we've yet to see any effort on your part for us to help with. :)


No i mean to say

1. I have some data from database.
2. Data from a html file.
3. An image

Above three points are merged in to a HTML.

Now this HTMLdata i want to export it to a DOCfile and a option for a download it.

This all i want to do by using PHP code.

So now can u understand the problem.
Was This Post Helpful? 0

#7 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10572
  • View blog
  • Posts: 39,143
  • Joined: 27-December 08

Re: Generating doc using PHP

Posted 01 August 2010 - 11:18 PM

You'll want to take a look at using the COM Library. I found a basic example and tutorial here.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1