Page 1 of 2

Help with php

Posted: Mon Aug 01, 2016 3:15 pm
by MattKingUSA
If anyone can help me with some php please message me. I've rebuilt a website from scratch but have been unable to sort out some functions in php. Thanks guys!

Re: Help with php

Posted: Tue Aug 02, 2016 3:02 pm
by MattKingUSA
Nevermind i got it figured out!

Re: Help with php

Posted: Wed Aug 03, 2016 5:35 am
by MattKingUSA
If you want to check out the website it is at https://sourceforge.net/projects/minimal-music-site/

My code is a mess but the site works for what I need.

:)

Re: Help with php

Posted: Wed Aug 03, 2016 4:14 pm
by Lyberta
I suggest using another code hosting site as SourceForge got F from FSF: https://www.gnu.org/software/repo-crite ... ation.html

Re: Help with php

Posted: Wed Aug 03, 2016 5:04 pm
by MattKingUSA
Well, i kind of utilized java for my site design too. :/

Re: Help with php

Posted: Wed Aug 03, 2016 5:18 pm
by MattKingUSA
I put a download link to jquery in the readme.txt it goes in the admin folder. Its used to list files on the server that have been uploaded in order for the user to remove them from the site.

Re: Help with php

Posted: Thu Aug 04, 2016 1:08 pm
by tnovelli
MattKingUSA wrote:Well, i kind of utilized java for my site design too. :/
Javascript, right? Java is another beast that's anything but simple :lol:

I notice you're not using a database, just reading info from files. Good.

The one thing I'd do differently is to do all editing/uploading via SSH/FTP. Web based admin is complicated and not very secure. Any script that takes input from the open internet and has permission to do file/database writes is just asking for pwnage. It's getting to be a huge problem for Wordpress and Drupal sites.

Re: Help with php

Posted: Thu Aug 04, 2016 1:32 pm
by MattKingUSA
Well I use ftp however the site is for some guys who dpnt know anything other than browser uploads. But I agree on security.

Re: Help with php

Posted: Thu Aug 04, 2016 1:46 pm
by MattKingUSA
If you can suggest some security updates ill include them. :)

Re: Help with php

Posted: Fri Aug 05, 2016 2:19 pm
by tnovelli
One word, my friend: BACKUPS :lol:

There are so many holes, in everything down to low-level image format libs, it's impossible to really make anything secure. At least you don't have to worry about SQL injection. And you're not the low hanging fruit. If you're not running Wordpress and you're not famous, you don't have to worry so much... yet.

Re: Help with php

Posted: Fri Aug 05, 2016 4:36 pm
by MattKingUSA
Aww thats sad. I'm submitting an update today that changes the site name from the admin page.

As I learn more it will become more secure with updates.

I should rename it noob minimal music site.

Re: Help with php

Posted: Fri Aug 05, 2016 4:52 pm
by MattKingUSA
I dont know much about php security advice would be well appreciated.

Re: Help with php

Posted: Fri Aug 05, 2016 4:52 pm
by MattKingUSA
minimal swiss cheese? Haha

Re: Help with php

Posted: Sat Aug 06, 2016 3:31 pm
by MattKingUSA
I added an updated version with a new function to change the website title. It is under admin>look>change site name.

https://sourceforge.net/projects/minima ... ite/files/

Re: Help with php

Posted: Sun Aug 07, 2016 1:03 am
by MattKingUSA
MattKingUSA wrote:Well, i kind of utilized java for my site design too. :/
I have a fix for the java. Im going to update and move the project to an fsf approved host. :)