+ Reply to Thread
Results 1 to 2 of 2

Thread: Location of CSV file and HTML Templates

  1. #1
    Join Date
    Aug 2011
    Posts
    1

    Cool Location of CSV file and HTML Templates

    First of all, thank you to the author of FormMail for this fantastic software! Soon enough I will be a customer of the paid features when it is called for.

    My question(s):
    Currently I have my formdata.csv located in
    /var/www/formdata/formdata.csv

    Is www the same thing as public_html? Should I bring the location of this file up to /var/formdata.csv for added security? And at that point, would it really matter what the permissions were?

    My server has directories /var/www/public_html so i thought /var/www would be inaccessible from a browser, but maybe it is not.

    The same question applies to my HTML template. It is located in
    /var/www/formdata/plates/preregistrationPlate.html

    Why do we need to hide the template? What security issues are presented if the template is not above public_html?

    Many many thanks,
    Gabe

  2. #2
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Location of CSV file and HTML Templates

    Quote Originally Posted by stealyourface View Post

    My question(s):
    Currently I have my formdata.csv located in
    /var/www/formdata/formdata.csv

    Is www the same thing as public_html?
    usually it is....but it depends on ur server.

    Should I bring the location of this file up to /var/formdata.csv for added security? And at that point, would it really matter what the permissions were?
    yep, u usually want ur CSV files protected from web access.

    the permissions need to be rw-rw-rw- so the user that runs the web server software (apache) can write to the file - coz that's what the user is who runs ur formmail.php

    My server has directories /var/www/public_html so i thought /var/www would be inaccessible from a browser, but maybe it is not.
    probly the same

    The same question applies to my HTML template. It is located in
    /var/www/formdata/plates/preregistrationPlate.html

    Why do we need to hide the template? What security issues are presented if the template is not above public_html?
    i can't think of any reason u need to protect ur templates.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. HTML templates
    By neillmorgan in forum Community Support
    Replies: 4
    Last Post: 15-Dec-2009, 11:43 AM
  2. Templatedir and html-templates
    By lesser in forum Community Support
    Replies: 3
    Last Post: 26-Jul-2008, 10:24 PM
  3. Replies: 0
    Last Post: 23-Jan-2008, 03:28 AM
  4. HTML Templates
    By Roger99 in forum Community Support
    Replies: 4
    Last Post: 11-Jan-2007, 04:40 PM
  5. Can I use PHP instead of HTML for my templates?
    By maida in forum Community Support
    Replies: 3
    Last Post: 01-Nov-2006, 03:27 AM

Tags for this Thread

Bookmarks

Posting Permissions

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