Solved

PHP Question

Posted on 2006-10-19
5
176 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
5 Comments
 
LVL 14

Accepted Solution

by:
CtrlAltDl earned 29 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 28 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 28 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
xampp tool 12 28
WordPress syntax 2 28
Why my select dropdown does not work? 8 27
Checking CSRF token within a function 36 14
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
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…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

867 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now