thanks for responding.
i modified the pdf section of this function so that it writes to a directory called 'pdf', instead of the general directory where all my php files are in, this way i can set up a cron job to delete the contents of the 'pdf' directory on a nightly basis
here's how my pdf generating code looks now
http://www3.medill.northwestern.edu/testapp/pg1pdf.phps
what i'd like is, instead of generating a pdf called 'mjp_pg1.pdf', i'd like it to generate a pdf called $lastname.'mjp_pg1.pdf', that way it generates a unique file for each person who clicks on this page, so if 2 or more are on it at a time, i don't have to worry about somebody bringing up a pdf prepopulated with somebody else's information.
can you help me with the syntax on making a unique name for the pdf generated?
thanks
philosophia
edit: i downloaded pdf class - i am running a FreeBSD 4.6.1-RELEASE-p11 #2 machine, apache 1.324, php 4.2.1
is pdf class compatible with my setup?