UBB.Dev
Posted By: Murphdog Looking for a simple upload script - 09/24/2008 3:33 AM
I have a custom html page the pulls data from a single file that I create. Instead of using an ftp client all of the time, I would like to use a simple upload script that only I (admin) have access to. Can anyone recommend a script to me? Many of the scripts out there that I have googled seem to have the right idea, but they seem to be missing one feature. I need it to overwrite the file that is currently on the server with the same name (or find another script that allows me to delete the file).

Any help would be appreciated.
Thanks
Murph
Posted By: blaaskaak Re: Looking for a simple upload script - 09/24/2008 7:04 PM
A possible solution, since this is the ubbdev forum, I think you have ubb.threads smile

ubb.threads uses files for a lot of inserts, header, footer, and forum specific headers/footers/inserts.

A solution could be to make a dummy forum, with no access to it for anyone, and use that header/footer/insert field for entering your file.

The file you are uploading, it is always the same file on the same place on your harddisk? If so, a scripted FTP solution would be the most usefriendly solution. Just hit the shortcut, and have a script upload your file.
Posted By: Murphdog Re: Looking for a simple upload script - 09/27/2008 3:45 AM
Yes I use ubb.threads latest version but I don't want to use it in a forum. I have a custom page (using the sample.inc.php script) that is available to registered users, and I want to put a kind of "if admin, show my script" type statement into it so only admins see the file upload script.. I was able to find a script that seems to work the way I want. Now I'm trying to figure out how to add it to mypage.inc.php. I've posted about this in another topic.
Posted By: AllenAyres Re: Looking for a simple upload script - 11/11/2008 10:12 PM
You could easily make the file manager admin-only.
© UBB.Developers