Re: [PHP-DB] Insert File in a Database

2001-05-24 Thread Anderson Sone
Didn´t work... i already changed the "upload_max_file". It isn´t inserting large string in a DB... Only 4Kb! ""Miguel Loureiro"" <[EMAIL PROTECTED]> escreveu na mensagem 006501c0e42c$aa66c650$[EMAIL PROTECTED]">news:006501c0e42c$aa66c650$[EMAIL PROTECTED]... I think that to upload a bigger

Re: [PHP-DB] Insert File in a Database

2001-05-24 Thread Miguel Loureiro
I think that to upload a bigger files you must change in php.ini the value referent of upload_max_file. Maybe it solve your problem... Este e' portugues. Felicidades... Good luck, good codeCARPE DIEM   Best Regardsmailto:[EMAIL PROTECTED]t 

Re: [PHP-DB] Insert File in a Database

2001-05-24 Thread Stig Sæther Bakken
["Anderson Sone" <[EMAIL PROTECTED]>] > How can i insert a file in a Database? > I´m using PHP + MSSQL 2k > > I´m trying to insert a .doc file in a db. I read the file and put it in a > db. > I´m having a lot of problem... like: > _ > Warning: MS SQL message: Unclosed quotation mark b

Re: [PHP-DB] Insert File in a Database

2001-05-23 Thread Anderson Sone
didnt work again! The problem : is not possible to insert files bigger than 4Kb in the MS-Sql Server 2000. I think is a configuration, but i don´t no where... Help me , tks. Anderson Mais um brasileiro :) "Mário Henrique Cruz Tôrres" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTE

Re: [PHP-DB] Insert File in a Database

2001-05-23 Thread Mário Henrique Cruz Tôrres
I think you need write a line with a code like this one. Because your data contais quotes. $data = addslashes(fread(fopen($binFile, "r"), filesize($binFile))); - where $binFile is the name of your variable FILE (wich you want to insert at your DB ). If you are confused see the addslashes in ph