Jump to content

geoffl1

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

geoffl1's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. use an html file for the upload form and have it post to a php... you can find tons of them around the internet if you look.
  2. It still won't print anything. Any other ideas? It was working at first just using $file['type'] but then randomly stopped. I can't figure out what I must've changed. Could there be anything in my php.ini file causing it?
  3. I get an error when I try that: Call to undefined function mime_content_type()
  4. help please! I need to figure this out ASAP. Thanks
  5. I'm reading files from a directory. Here is the code. Thanks again. // open the current directory by opendir $handle=opendir("."); while (($file = readdir($handle))!==false) {     print $file['type']; if($file['type']=="application/x-php"||$file['type']=="text/html"){                 //doesn't allow .php or .html files to be seen         } else{ print "<a href='$file'>Click to download </a>"; print $file.'<br>'; } }
  6. When I try to use: print $file['type']; it prints the first letter of the file instead of the MIME type. Any suggestions? Thanks.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.