+ Reply to Thread
Results 1 to 2 of 2




  

Thread: How can I read CSV file?

      
  1. #1
    I'm New! ferrariboy21 is on a distinguished road ferrariboy21's Avatar
    Join Date
    June 10, 2008
    Location
    Liverpool lives in me
    Posts
    35
    Rep Power
    4
    Feedback Score
    0

    Default How can I read CSV file?

    I'm working on a browse/upload service which allows me to upload "CSV" file. Currently, I'm only able to upload "txt", "html" files but not "CSV" or any WORD related extensions. How do I do that?

    Image - I have no problem uploading text file. It appears below.
    (Link:http://triton.imageshack.us/Himg395/...=578&ysize=480)


    Image - Each time I want to upload a CSV file, it prompts me ...
    (Link: http://triton.imageshack.us/Himg373/...=578&ysize=480)



    Another problem is I can only upload files which are in the same folder as where I put all the javascripts/html/codes. How do I make sure that I can upload files from other folders as well?

    Just for your info, I'm using
    Code:
    <input type="hidden" name="MAX_FILE_SIZE" value="100" />
    <input name="file" type="file" id="browsefile" /><input type="button" value="Upload" onclick="javascript:uploadfile ()">
    Thanks

  2. #2
    The Force is Strong! scoopy82 will become famous soon enoughscoopy82 will become famous soon enoughscoopy82 will become famous soon enough scoopy82's Avatar
    Join Date
    December 31, 2007
    Posts
    61
    Rep Power
    5
    Feedback Score
    0

    Default Re: How can I read CSV file?

    Not positive... but I think you need to set up an Apache handler to treat CSV, DOC, EXL, etc. files as text. Its sort of like the way windows handles these extensions with associations to applications.

    From cpanel:
    Apache Handlers

    Apache handlers allow you to control what Apache will do with certain file types. When Apache sees a file, it has an action built in for that file type, and will perform that action. If you wish Apache to do a different action, you will need to make a handler to tell Apache to perform that action. For example, if you use a file type that requires a special service to run it, such as a file with server side includes that is not named with a .shtml extension, you need to tell Apache to treat these files differently.
    Show Me Your Pix and I will show you mine.
    Complete webmaster services available from scoopy... works cheap.

+ 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. How to Include a php file directly to phpfox html file
    By vineethclm in forum Programming
    Replies: 9
    Last Post: Dec 29th, 2011, 7:31 pm
  2. books you've read that others should not read
    By WikicyloN in forum Forum Lounge
    Replies: 4
    Last Post: Sep 28th, 2007, 2:39 pm
  3. Help for PSD file PLEASE
    By Saagar in forum HTML & Website Design
    Replies: 2
    Last Post: Sep 27th, 2007, 10:42 am

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
WebTalkForums
WebTalkForums
Recent Forum Threads