Re[4]: [PHP] pulling data out of a text file
| From: | Richard Kurth | Date: | Thu, 28 Dec 2000 05:17:05 +0000 |
| Subject: | Re[4]: [PHP] pulling data out of a text file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32051@lists.php.net to get a copy of this message | ||
Hello Blaster,
This is what the script look like now but it put out no data when I
run it. This is driving me crazy any ideas on what to do.
$fp=fopen ("userdata","r")or die("unable to open file ($userdata)");
flock($fp, 2); //unless ($use_flock == 0);
while (!feof ($fp)) {
$row=explode(',',fgets($fp,4096));
}
$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;
echo $domain;
echo "<br>";
echo $company;
echo "<br>";
echo $firstname;
--
Best regards,
Richard mailto:rkurth@pacifier.com