storing file content line by line

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
yaron
Forum Contributor
Posts: 157
Joined: Fri Aug 22, 2003 8:40 am

storing file content line by line

Post by yaron »

Hell all,
I have text files and html files I want to store in a db(mySql)
the lines structure is important to me so I'm saving all the file content line by line as an array with a special delimiter.
I found out that large files are not stored and when I'm saying large I mean about 200Kb (4000 lines).
I use longText field. I don't get any error from my sql but the data is not stored!!
I know longText can store up to 4G so howcome I can't!!
I'm using my local host as server and I have installed phpTriad v2.11
here are the details:
PHP - 4.0.5
MySQL - 3.23.32
Apache - 1.3.14
PHPMyAdmin - 2.1.0
Is it just a version problem and when I upload my scripts to my real server this problem will go away?
Thanks
Post Reply