Got a packet bigger than 'max_allowed_packet' bytes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i have write a script which search few element from a database. I use a text
file as input.

input file contains these kind of data

clubhouseforkids.com
cairouniversity.com
501c3nonprofit.com
mrbling.com
cellsocket.com

this is the scripts for read the file data

/**********************/
$file = fopen("files.txt", "r") or exit("Unable to open file!");

 while(!feof($file))
 {
     $data[] = stream_get_line($file, 1000000, "\n");
 }
 fclose($file);
/********************/

this script worked fine for small size of file. but if i use a large size
like 900KB then its show "Got a packet bigger than 'max_allowed_packet'
bytes" .

where I'm doing wrong? please help me out there...


-----
Regards
Saeed Ahmed
http://saeed05.wordpress.com
-----

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux