Date: 12/27/00
- Next message: Blaster: "RE: [PHP] Error when browse a directory~~~"
- Previous message: [ rswfire ]: "[PHP] Installing PHP on NTWS4 SP6"
- Next in thread: Blaster: "RE: [PHP] pulling data out of a text file"
- Reply: Blaster: "RE: [PHP] pulling data out of a text file"
- Reply: Richard Lynch: "Re: [PHP] pulling data out of a text file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I cannot seem to figure this out after many hours of looking at the
list archives and playing with different things it still will not do
what I what it to. I want it to fill the variables with what is in
the userdata file.
The userdata file looks like this
newdomain,.com,Company,Firstname,Name,Street Adress 1,12345,
Small Town,,,customer <email protected>,Pack1,no,no,no
The script I am using looks like this so what am I doing wrong.
$fp=fopen ("userdata","r")or die("unable to open file ($userdata)");
flock($fp, 2); //unless ($use_flock == 0);
while (!feof ($fp)) {
$row=explode(',',$fp);
}
$row[0]= $domain;
$row[1]=$tld;
$row[2]=$company;
$row[3]=$firstname;
$row[4]=$lastname;
$row[5]=$address;
$row[6]=$zip;
$row[7]=$city;
$row[8]=$telephone;
$row[9]=$fax;
$row[10]=$email;
$row[11]=$package;
$row[12]=$frontpage;
$row[13]=$mysql;
$row[14]=$change_registrar;
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Blaster: "RE: [PHP] Error when browse a directory~~~"
- Previous message: [ rswfire ]: "[PHP] Installing PHP on NTWS4 SP6"
- Next in thread: Blaster: "RE: [PHP] pulling data out of a text file"
- Reply: Blaster: "RE: [PHP] pulling data out of a text file"
- Reply: Richard Lynch: "Re: [PHP] pulling data out of a text file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

