Help with php

Completely and utterly unrelated.

Moderators: raboof, MattKingUSA, khz

User avatar
MattKingUSA
Moderation Services Senior Administrator
Posts: 795
Joined: Fri Mar 21, 2008 4:01 pm
Location: United States
Has thanked: 52 times
Been thanked: 38 times
Contact:

Help with php

Post 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!

-Matt :D

User avatar
MattKingUSA
Moderation Services Senior Administrator
Posts: 795
Joined: Fri Mar 21, 2008 4:01 pm
Location: United States
Has thanked: 52 times
Been thanked: 38 times
Contact:

Re: Help with php

Post by MattKingUSA »

Nevermind i got it figured out!

-Matt :D

User avatar
MattKingUSA
Moderation Services Senior Administrator
Posts: 795
Joined: Fri Mar 21, 2008 4:01 pm
Location: United States
Has thanked: 52 times
Been thanked: 38 times
Contact:

Re: Help with php

Post 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.

:)

-Matt :D

Lyberta
Established Member
Posts: 681
Joined: Sat Nov 01, 2014 8:15 pm
Location: The Internet
Been thanked: 1 time

Re: Help with php

Post by Lyberta »

I suggest using another code hosting site as SourceForge got F from FSF: https://www.gnu.org/software/repo-crite ... ation.html
User avatar
MattKingUSA
Moderation Services Senior Administrator
Posts: 795
Joined: Fri Mar 21, 2008 4:01 pm
Location: United States
Has thanked: 52 times
Been thanked: 38 times
Contact:

Re: Help with php

Post by MattKingUSA »

Well, i kind of utilized java for my site design too. :/

-Matt :D

User avatar
MattKingUSA
Moderation Services Senior Administrator
Posts: 795
Joined: Fri Mar 21, 2008 4:01 pm
Location: United States
Has thanked: 52 times
Been thanked: 38 times
Contact:

Re: Help with php

Post 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.

-Matt :D

tnovelli
Established Member
Posts: 277
Joined: Wed Apr 20, 2011 4:52 pm

Re: Help with php

Post 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.
User avatar
MattKingUSA
Moderation Services Senior Administrator
Posts: 795
Joined: Fri Mar 21, 2008 4:01 pm
Location: United States
Has thanked: 52 times
Been thanked: 38 times
Contact:

Re: Help with php

Post 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.

-Matt :D

User avatar
MattKingUSA
Moderation Services Senior Administrator
Posts: 795
Joined: Fri Mar 21, 2008 4:01 pm
Location: United States
Has thanked: 52 times
Been thanked: 38 times
Contact:

Re: Help with php

Post by MattKingUSA »

If you can suggest some security updates ill include them. :)

-Matt :D

tnovelli
Established Member
Posts: 277
Joined: Wed Apr 20, 2011 4:52 pm

Re: Help with php

Post 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.
User avatar
MattKingUSA
Moderation Services Senior Administrator
Posts: 795
Joined: Fri Mar 21, 2008 4:01 pm
Location: United States
Has thanked: 52 times
Been thanked: 38 times
Contact:

Re: Help with php

Post 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.

-Matt :D

User avatar
MattKingUSA
Moderation Services Senior Administrator
Posts: 795
Joined: Fri Mar 21, 2008 4:01 pm
Location: United States
Has thanked: 52 times
Been thanked: 38 times
Contact:

Re: Help with php

Post by MattKingUSA »

I dont know much about php security advice would be well appreciated.

-Matt :D

User avatar
MattKingUSA
Moderation Services Senior Administrator
Posts: 795
Joined: Fri Mar 21, 2008 4:01 pm
Location: United States
Has thanked: 52 times
Been thanked: 38 times
Contact:

Re: Help with php

Post by MattKingUSA »

minimal swiss cheese? Haha

-Matt :D

User avatar
MattKingUSA
Moderation Services Senior Administrator
Posts: 795
Joined: Fri Mar 21, 2008 4:01 pm
Location: United States
Has thanked: 52 times
Been thanked: 38 times
Contact:

Re: Help with php

Post 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/

-Matt :D

User avatar
MattKingUSA
Moderation Services Senior Administrator
Posts: 795
Joined: Fri Mar 21, 2008 4:01 pm
Location: United States
Has thanked: 52 times
Been thanked: 38 times
Contact:

Re: Help with php

Post 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. :)

-Matt :D

Post Reply