Re: [PHP] Uploading and verifying word and excel files

2005-06-24 Thread Jack Jackson
Thank you for ALL this great information, Richard! I really appreciate all the help. JJ Richard Lynch wrote: On Thu, June 23, 2005 7:42 am, Jack Jackson said: I cannot see a way to validate or examine Word or Excel files for validity (and assume that older word files would validate differently

Re: [PHP] Uploading and verifying word and excel files

2005-06-23 Thread Richard Lynch
On Thu, June 23, 2005 7:42 am, Jack Jackson said: > I cannot see a way to validate or examine Word or Excel files for > validity (and assume that older word files would validate differently > from newer ones). If your PHP does not have the mime_type functions, you could probably use http://php.net

Re: [PHP] Uploading and verifying word and excel files

2005-06-23 Thread Jack Jackson
Tom Rogers wrote: Hi, Friday, June 24, 2005, 12:42:33 AM, you wrote: JJ> Hi, JJ> I checked at JJ> http://www.php.net/manual/en/features.file-upload.php and JJ> all the user notes, and also the PEAR solution for uploading files and I JJ> still have a couple of questions. JJ> I need to create

Re: [PHP] Uploading and verifying word and excel files

2005-06-23 Thread Tom Rogers
Hi, Friday, June 24, 2005, 12:42:33 AM, you wrote: JJ> Hi, JJ> I checked at JJ> http://www.php.net/manual/en/features.file-upload.php and JJ> all the user notes, and also the PEAR solution for uploading files and I JJ> still have a couple of questions. JJ> I need to create a form to allow users

Re: [PHP] Uploading and verifying word and excel files

2005-06-23 Thread John Nichel
Jack Jackson wrote: So my questions: 1. How do you validate Word and Excel files before upload? Before? JavaScript...if JavaScript can even do it (I haven't touched the stuff in ages). After upload, you can check the mime type, but that's not foolproof. Okay, sorry I miswrote: after

Re: [PHP] Uploading and verifying word and excel files

2005-06-23 Thread Mathieu Dumoulin
John Nichel wrote: Jack Jackson wrote: Also, it seems that directories must be blown wide open (777) to allow the script to copy the file over from /tmp. My ISP won't allow directories to be set to 777 under public_html/ -- but we need to access the files via web browser which is the whole p

Re: [PHP] Uploading and verifying word and excel files

2005-06-23 Thread Jack Jackson
John Nichel wrote: Jack Jackson wrote: Also, it seems that directories must be blown wide open (777) to allow the script to copy the file over from /tmp. My ISP won't allow directories to be set to 777 under public_html/ -- but we need to access the files via web browser which is the whole

Re: [PHP] Uploading and verifying word and excel files

2005-06-23 Thread John Nichel
Jack Jackson wrote: Also, it seems that directories must be blown wide open (777) to allow the script to copy the file over from /tmp. My ISP won't allow directories to be set to 777 under public_html/ -- but we need to access the files via web browser which is the whole point. It shouldn't

[PHP] Uploading and verifying word and excel files

2005-06-23 Thread Jack Jackson
Hi, I checked at http://www.php.net/manual/en/features.file-upload.php and all the user notes, and also the PEAR solution for uploading files and I still have a couple of questions. I need to create a form to allow users to upload (and later to delete) MS word, excel and jpg files. Through yo