Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!news.glorb.com!news-in-01.newsfeed.easynews.com!easynews!core-easynews-01!easynews.com!en-nntp-02.dc1.easynews.com.POSTED!not-for-mail From: Harry Putnam Newsgroups: comp.lang.php Subject: Why and wherefore file downloads Organization: Still searching... User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux) Message-ID: <87ehv25dm4.fsf@newsguy.com> Cancel-Lock: sha1:XhvGS3NtjBmle9VU7FmvseOPNYk= MIME-Version: 1.0 Content-Type: text/plain Lines: 79 X-Complaints-To: abuse@easynews.com X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly. Date: Sat, 14 Jan 2012 13:43:31 -0500 Xref: x330-a1.tempe.blueboxinc.net comp.lang.php:4463 I lifted something close to this off google, edited and now have it working along with a cgi script of my own. I'm way under skilled in this and I have noticed something remarkable about the php part of the setup: ------- --------- ---=--- --------- -------- From_mohitsharma.net.php php ------- --------- ---=--- --------- -------- Notice the asterisked `**HERE**' in line 2. It does not seem to matter what I put there, the script still works. I started out carefully putting the exact path there but later noticed that it worked no matter what I put there. Can anyone tell me why that is so? ------- --------- ---=--- --------- -------- The cgi that calls the php code is short so included below as well. ------- --------- ---=--- --------- -------- cgi (note that the actual files for download are in `DocumentRoot/fr/': ------- 8< snip ---------- 8< snip ---------- 8 Free stuff

Assorted downloads

\n";