Mysql and php

my problem is I hav to done the following quiz.Can any baoy help me plzzzzz

Proposed web application is to share files having various extensions such as .doc, .jpg, .avi, .pdf, etc. Application users should be allowed to register before using any service available in the web application.get teenies

users will allowed to register and upload files publicly to share with other via a link ?
similar to megaupload.com (R.I.P)?

in here Application users must be registered before access any service and also Application should provide the facility to upload files (one at a time with any extension) into the relevant extension category (Word doc, PDF, JPG Image, AVI Video, etc). In here extensions of the uploaded files should be validated with the selected category by the user or application should automatically determine the relevant category.

do you have any start up where you need help with ?
do you have the layout of the html form?

you haven’t started yet, just looking for suggestion?

I already have created the form for uplaoding.But my problem is how to validate them for their extensions?thnk u

[php]
$filename = basename($_FILES[‘change_this_to_whatever_name_you_have’][‘name’]);
$file_ext = substr($filename, strrpos($filename, ‘.’) + 1);
[/php]

that will get you the file extension

:slight_smile: :slight_smile: :slight_smile: thank you so much for ur help :slight_smile:

Sponsor our Newsletter | Privacy Policy | Terms of Service