[PHP] Re: truncate a mb-string to a given octet length?

2009-06-12 Thread Tom Worster
On 6/12/09 11:50 AM, "Tom Worster" wrote: > say a table in the db has a varchar(255) column, 255 being the max number of > octets of strings that can go in the column. now say the php script very > occasionally has to deal with utf8 input strings with octet length > 255 -- it > needs to select ro

[PHP] Re: Truncate ::: DAM!!!!!

2002-07-18 Thread vins
nerver mind... i'm a moron i sorted it out sorry for bugging next time i'll test much more before posting really am sorry "Vins" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > LOL.. > So after my last post about updating files i sat and thoug

[PHP] Re: Truncate ::: DAM!!!!!

2002-07-18 Thread vins
you know what forget this whole thing I just need to know how do i clear the file contents set it 0 length I cannot delete the file no permission "Vins" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > LOL.. > So after my last post a

[PHP] Re: truncate?

2001-09-21 Thread Richard Lynch
I think you can do fopen(...,'w+')/fseek()/fclose() in some combination that would do that... Might need to fwrite(...,EOF) or something... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.h