im not sure of how to create a 1-d array. i want to read a text file and put each line 
into an array, i wrote the following piece of code but got errors,

$conn=pg_connect("host=abcd/djkfhjd/  dbname=ucs user=roslyn password=roslyn");
$fp = fopen ($filename,"r");
while (!feof ($fp))
    $buffer = fgets($fp,$len);
    $charcs= array($buffer);
 echo "$charcs <br>";



basically i need to store the txt file data into the posgresql database. the output of 
the above code is: array, array....(4 times)...pls help me here. thanx


Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!

Reply via email to