where should perl create a file for user download?

Ask a Question related to PERL Beginners, Design and Development.

  1. #1

    Default where should perl create a file for user download?

    greetings,

    I am writing a small perl script that takes user input via a Web form, writes
    a few files to my server, creates a zip archive that includes those files,
    and offers the user a link to download the zip file. I am running perl 5.8
    on OS XS 10.3.

    can anyone offer some expert advice concerning where on my server to put the
    newly created zip? in my cgi script dir? somehow, this troubles me from a
    security perspective (plus the fact that all of my user-accessible documents
    exist on a separate Volume from my core server apps). is there a better way?


    thanks!

    (a perl newbie trying to start off on the right foot.)


    :tim

    --
    timothy driscoll
    molvisions - molecular graphics & visualization
    <http://www.molvisions.com/>
    usa:north carolina:wake forest


    Timothy Driscoll Guest

  2. Similar Questions and Discussions

    1. New Perl User needs help with POST in perl
      I have written my HTML code to where it uses POST to collect information. Where do I start to write a script that collects the data from the web...
    2. Download a file in Perl
      I have each month to download all the logfiles from my web server as GZ compressed files. From each domain access and referer log files. The...
    3. Download Beginning Perl ebook
      Motherofperls@aol.com writes: You're perfectly entitled to do this under the terms of the Creative Commons Attribution-NoDerivs-NonCommercial...
    4. How to let user download a file
      Hi, I am using .Net to develop an application that let the user download the file, is there any easy way to transfer the file to client? ...
    5. Create a file and send to user
      I need to create a data file from my PHP for the user to load into their word processor as a mail merge data source. Organising the data into rows...
  3. #2

    Default Re: where should perl create a file for user download?

    Timothy Driscoll wrote:
    > greetings,
    >
    > I am writing a small perl script that takes user input via a Web form, writes
    > a few files to my server, creates a zip archive that includes those files,
    > and offers the user a link to download the zip file. I am running perl 5.8
    > on OS XS 10.3.
    >
    > can anyone offer some expert advice concerning where on my server to put the
    > newly created zip? in my cgi script dir? somehow, this troubles me from a
    > security perspective (plus the fact that all of my user-accessible documents
    > exist on a separate Volume from my core server apps). is there a better way?
    >
    >
    > thanks!
    >
    > (a perl newbie trying to start off on the right foot.)
    >
    >
    > :tim
    >
    The simplest way :-
    Create a directory under your document root and store the files and
    give links to those files as plain href. thats it

    Optionally ,You can also try doing some fancy stuff like changing
    content type of your script and printing the zip file

    Bye
    Ram

    Ramprasad A Padmanabhan Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139