Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

CSV Zero Length??

by LostS (Friar)
on Feb 11, 2003 at 16:26 UTC ( [id://234444]=perlquestion: print w/replies, xml ) Need Help??

LostS has asked for the wisdom of the Perl Monks concerning the following question:

OK I have this code LostS's scratchpad that creates a CSV file from a DB and then tells the browser to download it. Now I have tried this on my local desktop and form other remote systems using IE 6.0, NS 4.78, & NS 4.8 and it has always worked fine for me. However when this user tries it they get a zero length file error. They are using NS 4.8. What can I do to try and debug what is going on?? Any suggestions??

-----------------------
Billy S.
Slinar Hardtail - Hand of Dane
Datal Ephialtes - Guildless
RallosZek.Net Admin/WebMaster

perl -le '$cat = "cat"; if ($cat =~ /\143\x61\x74/) { print "Its a cat +!\n"; } else { print "Thats a dog\n"; }'

Replies are listed 'Best First'.
(jeffa) Re: CSV Zero Length??
by jeffa (Bishop) on Feb 11, 2003 at 16:41 UTC
    Here is a small suggestion: don't post a SoPW that directs us to your scratchpad. :)

    That's why we have readmore tags. For example:

    That code will stay there. The code on your scratchpad more than likely will not.

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    
Re: CSV Zero Length??
by LostS (Friar) on Feb 11, 2003 at 16:33 UTC
    OK I think I found my problem. In the Downloadfile sub routine I was doing an open file but was never specifing the directory path... Gees I feel stupid :(

    -----------------------
    Billy S.
    Slinar Hardtail - Hand of Dane
    Datal Ephialtes - Guildless
    RallosZek.Net Admin/WebMaster

    perl -le '$cat = "cat"; if ($cat =~ /\143\x61\x74/) { print "Its a cat +!\n"; } else { print "Thats a dog\n"; }'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://234444]
Approved by broquaint
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-03-29 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found