Skip to content

Spittie/simple-php-image-hosting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Installation

  1. Install a webserver
  2. Install PHP
  3. Create a new folder called "up" in the same directory of index.php
  4. chmod 755 up
  5. That's it

Configuration

  • $title: Title of the page
  • $filedir: Directory where files will get uploaded
  • $maxsize: Maximus size (in bytes) of the uploaded file
  • $allowedExts: Allowed extensions
  • $allowedMime: Allowed mime types
  • $baseurl: Path of index.php

License

This code is released under the WTFPL V2 license

Demo

A demo is avaiable here

Warranty

This project is released without warranty.
I've coded this without prior knowledge of PHP in few hours, so it's probably full of bad habit.
Don't complain with me if someone uses this to hack your server.
You may want to disable PHP in the "up" folder, to increase security.
Remember to set a size limit in your php.ini and/or your webserver too.

About

A very simple script for image hosting.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages