Simple PHP image gallery with file upload - php

I am looking for a really simple PHP image gallery system that allows file uploads and provides easy integration into any existing PHP script. I only found full galleries with database backend and templating systems for integration and the too simple ones that just take a folder with (FTP uploaded) images and show it but don't provide the possibilities for file uploads.
I'm quite close on writing my own, cause I didn't find anything yet, but I first wanted to ask if you have any suggestions.

Ok so I have a very early version of it on Github, it is under development (and not really nice yet, I just needed the admin interface up and running) but contributions and comments are welcome.

Related

Symfony - How to upload large files to onedrive?

Hello, how are you?
Currently, I am building a symfony project(symfony 5.4).
I am going to write a standalone upload script to upload backup files(.zip files) automatically to OneDrive.
And the files are up to 5 GB.
But I am not sure what should I start from and how to implement it.
If someone who has experiences in it, please let me know the way.
Any comment or suggestion will welcome.
Thanks.
In the spirit of open source, whenever you need a specific requirement, most probably someone else has published a library for it. You are in luck because there is already https://github.com/krizalys/onedrive-php-sdk. You can either use that library or reverse engineer from the source code to implement into your Symfony code base.

Store Wordpress "uploads" folder on another server

I have four servers and and on one of these servers i have installed Wordpress for selling digital files. For security reasons i don't want to keep files on the same server as Wordpress is installed. I want to move "Uploads" folder to other three servers and connect theme to Wordpress core. So whenever i upload something via Wordpress i want it to be transferred to the second or third server based on file format. How is such thing possible?
P.S: Unfortunately i can't use Amazon S3.
This was an interesting answer:
https://wordpress.stackexchange.com/questions/74180/upload-images-to-remote-server/78129#78129
It is a bit outdated, but the code says is still does the trick. However, to do exactly what you need, some modifications are required.
Hopefully this will be helpful to you. Have a nice day!

Running PHP scripts with Bolt CMS

So, this might be a stupid question. Bear with me, I'm new to CMS usage :P
Anyways, I'm using Bolt CMS to create a very simple website. For it, I just need a simple contact form, which means my server needs to be able to send out an email. I want to use PHP for this.
Now, how exactly should I handle this with Bolt CMS? The default configuration does not allow .php files to be uploaded, however I could easily change this in the main configuration, to allow for its type. My first guess was to try and upload it to either the theme folder, or the file folder for the theme. However, when I try to upload .php files they don't even show up in the folders I upload them to, even though it says the file was uploaded successfully. However, I'm unsure this would even be the best way to handle PHP scripts with Bolt CMS.
Anyone got any inputs to this? :)
Thank you!
For security reasons, Bolt will not allow you to run PHP scripts from inside Bolt. If this is something you need to have, there are two options:
Make it standalone. Create a contact.php on the server that handles it, and link to that.
The better solution would be to use an extension for that. Simpleforms (easy to implement, with a fair share of options), BoltForms (more options and allows for more control over the fields as well as uploads) or Simple Contact Form (very bare bones, but might be what you need).

PHP Media Manager like WordPress Media Uploader?

I simply love the ease at which Wordpress makes the uploading and the management of the photos and media so effortless.
I wanted to implement something like the WordPress Media Uploader into my NON-WORDPRESS PHP site. The problem is I really havent been able to find a good one till now.
Few of the features that I am looking for :
File uploader in it just like WP with the file upload progress.
Does not use Flash for uploading. This is really important.
Drag and Drop as well, maybe?
File manager which shows all the files that are uploaded as well.
Something possibly free? ( Le me getting greedy now :P )
I have found out the the media manager uses Plupload for its uploading if I am not mistaken.
And even the MoxieManager seems like a good manager. However, it is not free.
Is there an alternative? Or I would have to make my own from scratch?
Please guide me.
I would say to check out the Responsive Filemanager.
http://responsivefilemanager.com

WordPress or PHP script to pick an image file from a plugin folder

I'm creating a WordPress plugin that allows a user to select one of several image files that are distributed with it. Is there a simple technique for allowing the user to view the files in a filebrowser-like interface and pick one? I want it to look as similar as possible to picking a file in the normal file upload dialog.
I ended up adapting the code from this filebrowser that utilizes scandir. It has a nice simple interface and the code is simple enough to incorporate into a plugin.

Categories