Solved

PHP Question

Posted on 2006-10-19
5
192 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: 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

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

751 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