upload only text files


Posted on 16th Feb 2014 07:03 pm by admin

hi guys i want to upload only text like like (pdf,note pad and ofiice files) so can any one please tell me how can i restrict that

No comments posted yet

Your Answer:

Login to answer
194 Like 30 Dislike
Previous forums Next forums
Other forums

why is it over writing
Code: $filepaths[] = $_FILES['new_image'];
foreach ($filepaths as $filepath)
{
$imagename =

Not loading image
When this function gets loaded it doesn't load the image just trying to figure out why.

Code:

Check Date/Time in PHP
What I need the code to check is that $reQuest is 24 hours in the past then return a time based on h

rand() function
just a general question guys a girls, is the rand() function 100% random or is it based on time?

foreach iterator
Hi Guys
Does the foreach loop have an inbuilt iterator ?

Loops and Classes
I am making a template system and everything seems to be going well up until I have to loop in a var

how to insert value
I am having file bookissueadd.php..... in which i am having tag

<td height="21&q

what does this mean? +=
is anyone able to explain what this code is saying?

i had it written for me awhile back and n

Escaped characters
I have a script that allows you to post news to the home page of my site. Along with the news is the

help connecting a form to php and then emailing the form
Ok. So, I made a form, and I need help to where when submitted, I get an email with the submitted de

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash