Re: test for rtf

From: Date: Fri, 07 Mar 2003 16:41:00 +0000
Subject: Re: test for rtf
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-138658@lists.php.net to get a copy of this message
IF this data is being uploaded via form you should look into $_FILES array, in particular $_FILES["userfilename"]["type"]; R> On 3/7/03 11:33 AM, "Andrew Brampton" <andrew@bramp.freeserve.co.uk> wrote: > Not to sure on the RTF file format, but checking the first few letters might > help > Quickly opening a RTF file I see that they start with {\rtf > Maybe look for that. > > Andrew > ----- Original Message ----- > From: "bill" <bill@billtron.com> > To: <php-general@lists.php.net> > Sent: Friday, March 07, 2003 4:22 PM > Subject: [PHP] test for rtf > > >> Is there any way to test a file to confirm it is an RTF file? >> >> I'm thinking along the lines of how we can test for an image with >> getimagesize(). >> >> kind regards, >> >> bill >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> >

« previous php.general (#138658) next »