We have 25 traveling salesmen, each one has his own ifs directory. Using Apache each directory is secured using a .htaccess file so that each salesmen can only access their directory and files in it.
We use the (<a href=...>) method. The .htaccess file prevents them from mine other directories. --- Lionel PRIGENT <[EMAIL PROTECTED]> wrote: > Here I'm back for an other question. > > Now, with Easy400Group help, I can create PDF files > from my web programs > into an IFS directory. > The next level I'd like to reach is to allow the > user to obtain his file > (and only his file). > > For that, I've imagined to open directly the PDF > file in the browser after > its creation but I don't see how I can do that from > a CGIDEV program. > Has someone ever done that? Can a php include > command be used? If it can, I > could generate php script (but without .php suffix, > will it work?) > > If opening the PDF file is not possible, another > solution could consist in > displaying a link (<a href=...>) but this causes a > security problem. The > user will be able to see the path of the file and > then visit the whole > directory. How could this kind of solution be > secured? > > If you know how I can resolve this problem, have > examples that correspond to > what I'm looking for, don't hesitate... > > Many thanks. > > > -----Message d'origine----- > De : [email protected] > [mailto:[EMAIL PROTECTED] > la part de Richard ECUYER > Envoyé : jeudi 24 novembre 2005 13:00 > À : [email protected] > Objet : Re: [Easy400Group] CGIDEV2 problem > > > Hi, > If you make an OVRPRTF with SPLFOWN(*JOB) all will > be find. > ----- Original Message ----- > From: lpt_fr > To: [email protected] > Sent: Thursday, November 24, 2005 12:09 PM > Subject: [Easy400Group] CGIDEV2 problem > > > Hello, > > I'm writing a few programs that will allow users > to obtain pdf files > from spools via a web interface. > > Using CGIDEV2, i've created an HTML form where > they choose the > printing they want. When they submit the form, > I'm calling a CL > program that: > 1) override the spool file (I'm changing the > outq and the spool name) > 2) call an RPGLE which write this spool file > 3) use a utility called CVT2CMD. This utility > copies the spool file > into a PDF file. > > When I call the CL program from my 5250 session, > all work well. > When this CL program is called by my HTML form, > an error occurs in > point 3): spool file not found. In fact, the > spool file has been > created in the outq but under a job name that is > not the same as the > job of the CL. > > For the CL program, i've got > 296160/QTMHHTTP/GESDASWEBA. > For the spool, 231314/QTMHHTP1/QPRTJOB. > > As the CVT2CMD requires the job name to copy the > spool (like the > CPYSPLF command), I let the default value * > which does not correspond > to the spool job name. > > Can someone explain me why my spool is created > with an other job name? > How can i resolve my problem? > > Thanks > > > > > > SPONSORED LINKS How to format a computer hard > drive Cobol programmer > Iseries 400 > How to format a computer > > > ---------------------------------------------------------------------------- > YAHOO! GROUPS LINKS > > a.. Visit your group "Easy400Group" on the > web. > > b.. To unsubscribe from this group, send an > email to: > [EMAIL PROTECTED] > > c.. Your use of Yahoo! Groups is subject to > the Yahoo! Terms of > Service. > > > ---------------------------------------------------------------------------- > > __________________________________ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/u8TY5A/tzNLAA/yQLSAA/wbFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Easy400Group/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
