php3-list | 199903
Date: 02/24/99
- Next message: Mario Jorge Nunes Filipe: "[PHP3] [Fwd: 2 small questions...]"
- Previous message: Mohammed.Abu.Sharikh <email protected>: "[PHP3] fgetss"
- Next in thread: Mario Jorge Nunes Filipe: "[PHP3] Re: 2 small questions..."
- Reply: Mario Jorge Nunes Filipe: "[PHP3] Re: 2 small questions..."
- Maybe reply: Richard Lynch: "Re: [PHP3] 2 small questions..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello everyone
I have a couple of questions to pose to the fine people who lurk (or is
it lurke) arround this list.
Number 1 - I want to produce a CSV file of a set of records from a
database so that the users can import it into Excel (or similar). I
would like to know if there is a way i can force the browser to show a
file save dialog to save the file instead of showing the records on
screen and forcing them to save.
Number 2 - the very same files are going to be treated by the users and
then re-imported to the system. Each line has a student number, the
grade, and an adittional note. I read a line with fgets, then explode it
using "," as the separator. There is a possibilitie that the first
contains the headers instead of info, but it might not be there either.
So i thought about testing the first field by doing is_int($dados[0]).
$dados[0] is an integer (I insert into postgres on an int field and it
doesn't complain) but is_int returns nothing and neither does is_string
! So the question is : am i using is_int wrongly or is this pure and
simply broken (unlikely?)?
I'm using php 3.0.6!
Thank you very much!
--
Mario Filipe
mjnf <email protected>
http://neptuno.sc.uevora.pt/~mjnf
--
PHP 3 Mailing List http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list: php3-digest-subscribe <email protected>
For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3
List administrator: zeev-list-admin <email protected>
- Next message: Mario Jorge Nunes Filipe: "[PHP3] [Fwd: 2 small questions...]"
- Previous message: Mohammed.Abu.Sharikh <email protected>: "[PHP3] fgetss"
- Next in thread: Mario Jorge Nunes Filipe: "[PHP3] Re: 2 small questions..."
- Reply: Mario Jorge Nunes Filipe: "[PHP3] Re: 2 small questions..."
- Maybe reply: Richard Lynch: "Re: [PHP3] 2 small questions..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

