save a file content

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

save a file content

Post by yaron »

I'm trying to store in mysql db an html file's content.
what I'm doing is turn the file into array (line by line) and then implode it to a string with a special delimiter.
The field type is text but the file is big nothing happends and the big string does not go in the db.
is there a limit for the field TEXT?
User avatar
liljester
Forum Contributor
Posts: 400
Joined: Tue May 20, 2003 4:49 pm

Post by liljester »

how big is the file? php limits file upload size in the php.ini. also do you get any mysql errors?
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

You could read more here too:
http://www.mysql.com/doc/en/Column_types.html
Post Reply