From: Philip W. <p.g...@st...> - 2004-11-02 09:23:13
|
No, I think this has confused the issue. I added fileurl and sumfileurl because the values in these variables are wh= at=20 Rolodap passes back to the browser for user access to the files (ie=20 http://server.com/rolodap/temp/file.csv). HOWEVER, the files need to be written by Rolodap into the Unix filesystem. = The=20 filehandles need files of the form /var/www/rolodap/temp/file.csv Unless these is some PHP feature of which I am unaware (I'm an experienced= =20 programmer but PHP newbie) that enables opening filehandles from URLs then= =20 the proposed change should not work. Also, could you explain what the issue is with ownership? Thanks, Phil. On Monday 01 November 2004 22:24, Leo Cruz & Caro Hernandez wrote: > Philp: > Thank so much for this chamges. I have to do this in the past but I > hard-code to make work. > > In my test I found the following: > > 1) In the file that you sent with the difference you miss the following: > diff -Nur makelist.phtml /var/www/html/rolodap-v1/makelist.phtml > > -=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 $filehandle =3D fopen ("$fil= ename",w); > -=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 $summfile =3D fopen ("$sumfi= lename",w); > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 //$filehandle =3D fopen ("$f= ilename",w); > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 $filehandle =3D fopen ("$= fileurl",w); > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 //$summfile =3D fopen ("$sum= filename",w); > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 $summfile =3D fopen ("$su= mfileurl",w); > > 2) /temp ownership > [root@nightmare rolodap-v1]# pwd > /var/www/html/rolodap-v1 > > [root@nightmare rolodap-v1]# ls -ald temp > drwxr-xr-x=A0=A0=A0 2 apache=A0=A0 apache=A0=A0=A0=A0=A0=A0 4096 Oct 22 = 15:57 temp > > > Carolina > =A0 > > --- Philip Ward <p.g...@st...> wrote: > > From: Philip Ward <p.g...@st...> > Date: Fri, 22 Oct 2004 09:52:05 +0100 > To: rol...@li... > Subject: [Rolodap-develop] Intro and Mailing List Patches > > Hi folks, > > This is my first time on the mailing list, so here's a brief intro. > My name is Philip Ward. I'm one of the Unix admins at the University of > Stirling in central Scotland. I've been doing this for nearly two months, > previously having been a developer doing all sorts of things from Unix > daemons to embedded C on microcontrollers with some Oracle and Visual stu= ff > in between. I've been a Unix user since 1992 and a GNU/Linux home user > since 1998, having started hacking since receiving a BBC Micro in 1983. > I used to use Rolodap 0.9 at home. It was a pain to setup, but a joy to u= se > once working. When I moved things around at home I tried to install Rolod= ap > on the new server, but gave up and instead got ldap-abook working, and am > still using it at home. > My interest in Rolodap was rekindled when a friend asked me for a contacts > database that supported contact categorisation. I reckoned that Rolodap w= as > what he needed. I spent a bit more time trying to beat Rolodap into > submission and finally got it working. > This friend wants a searchable email audit trail, so I may end up adding > this functionality into Rolodap and sending in the patches. If anyone has > any ideas on how to add this then I'd love to hear them. > I'm thinking that the best way would be to make Rolodap do ALL the emaili= ng > (so remove the mailto: link from contact display and send all emails > through the rolodap email client) and then record all transactions in the > directory. Another way of doing it (probably more complex but will enable > users to use their preferred email client) would be to launch the default > email client but add ro...@ho...main in the cc list. A mail reader > could then received the message and feed it into the directory. > Whaddya think? > > Right, now for a wee gift. I noticed that Mailing list generation is > broken. Rolodap generates the files in the temp directory > (/var/www/rolodap/temp/ in my case) but when you then click to download t= he > file it > passes /var/www/rolodap/temp/filename.csv to the browser when it should > pass http://host.domain/rolodap/temp/filename.csv to the browser. The > attached patch adds TEMPURL to rolodap.conf and uses TEMPURL in generating > the url for the file download. > Please accept my apologies if this has already been fixed in CVS. > > Bye for now, > > Phil Ward. --=20 The University of Stirling is a university established in Scotland by charter at Stirling, FK9 4LA. Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not disclose, copy or deliver this message to anyone and any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. |