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

please, need help coding this voting for your favorite car polling system.
hi, my code needs a lot of work, but i want to be able to let users vote on their favorite car, upda

$variable $variables type question
I need to be able to designate an array element dynamically, so I thought to use a variable variable

session_destroy();
new to php
I have a simple login and am trying to write a logout.
I set a $_SESSION var to 1 i

Need help: how to catch acess of undefined class properties
Hello. I am learning OO with PHP and have hit a problem.
Some code runs as perfectly valid code,

The type or namespace name 'ServiceModel' does not exist in the namespace 'System'
When I locally run the website, it works just fine, but when I uploaded it to the hosting environmen

how to timeout $doc = new DOMDocument()->load($url)
I am currently using this $doc->load($url) to fetch an rss feed.
If a feed takes long than

VAT
how should I deal with VAT?

if I have a product that costs £5.00 and VAT @ 17.5% (£0.87

help with image upload code
Hello,

right now this code I have resizes images and then places them into the uploads folder

preg_match logical error
Code: <?php
$s = file_get_contents("page.html");
preg_match('/<div cla

Please Help my PHP Dating Function.
Hi everyone!

Well here is my code that displays this:

It works wonderful.


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