Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PHP Question

Posted on 2006-10-19
5
Medium Priority
?
211 Views
Last Modified: 2008-07-03
sorry, I have no experience at all with PHP and never coded..
I am looking to host a website where I will be serving pdf documents to my clients.. but when clients clicks on download -- i need to modify pdf and put unique id at few places so that they cannot distribute my documents.

also i need to write this unique id and ip address to a text file on server

how can i accomplish this?

i am looking at php for a solution since basic webhosting allows php progrmming bvy default .. but for anything like asp/coldfusion/jsp/java etc i have to pay extra ..

please help if these things can be accomplished with php programming..

thanks
0
Comment
Question by:irodov
3 Comments
 
LVL 14

Accepted Solution

by:
CtrlAltDl earned 116 total points
ID: 17770308
PHP will do the job.  You may need a database, but you could probably save your data to a text file (not effeciently).

Are writing stuff to the PDF or just the PDF file name?
0
 

Assisted Solution

by:melmothp
melmothp earned 112 total points
ID: 17771079
There are a lot of resources out on the net that will help you do this sort of thing with php and it's inbuilt libraries. It is possible.
In order to make head or tail of it, you'd need a little programming know-how and a bunch of web-server configuration knowledge (or see below).

Your basic webserver hosting will allow pdf, but you need to make sure that they allow you access to the pdflib library which is disabled by default installation.

From there it's a matter of googling until you find a tutorial that will tell you how to do basic edits on an existing PDF and similarly a bit on the fwrite function for your text files.
0
 
LVL 4

Assisted Solution

by:markdoc
markdoc earned 112 total points
ID: 17771501
hi,

if your web hosting hosts php 5 you can also use the zend framework which is easier to use than pdflib and is free for download at http://framework.zend.com/download

if php 5 is out of the question, then try fpdf available at http://www.fpdf.org/ and its extension that allow you to modify pdf files through templates at http://fpdi.setasign.de/

hope that helps,

doc
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question