Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-08-2017, 08:11 AM   #1
TmJones
Registered User
 
Industry Role:
Join Date: May 2016
Posts: 26
[PHP Programming] Website script folders

I looked at three separate scripts that I have and they have the following folders:

1) KVS - admin, blocks, contents, ftp-upload, images, js, langs, player, styles, template, temp
2) Mech Bunny TGP - admin, cache, controllers, core, csv_photos, ftp_photos, includes, media, temp_users_uploads, templates
3) Wordpress - wp-admin, wp-content, wp-includes

A person can tell that this depends of the author of the script and it will be different between the scripts. I am not asking about something as "ftp-upload" or "csv_photos" as I understand what this is but my question would be related to what are the rules of creating something like this and if there are any rules. Or scripts have the admin folder and also the includes folder. What would be the "includes" part, as far as this? I mean I can look inside and figure it out more or less, but are there any rules of creating something like this (like software design model or something like this)? Lets say I want to write a script or scripts like these, what would be the source of information about how to divide this into folders like this. I basically dont have this knowledge at this point.
TmJones is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-08-2017, 08:26 AM   #2
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,295
usally includes would be for some libraries or classes the script uses, general core functions.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-08-2017, 08:36 AM   #3
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
  • Recognizable directory names -- if it is a private script use folders that only you might recognize.
  • Proper directory and file permissions.
  • Private directories and files placed or written above the Document Root's path e.g.; /home/user/[site]/off web server root/directory/files
  • A blank index.html -- Apache2 and Nginx default to 403 and 404 respectively.

A logical inheritance of directories -- the 'directory tree' -- what folder should be inside what folder.
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-08-2017, 11:31 AM   #4
hdbuilder
Confirmed User
 
hdbuilder's Avatar
 
Industry Role:
Join Date: Jun 2012
Location: Canada
Posts: 1,338
When you create a script you can name any folder as you wish, if your script might be installed on a domain where others might run you try to choose a unique name for the main one...
__________________

ROBO SCRIPTS | WP CAM PLUGIN - Scripts To Promote Cam Sites - Chaturbate, BongaCams, Streamate, LiveJasmin, Stripchat...

The Cam Site Builder, The Cam Multi Site Builder -> MULTIPLE CAM SITES IN ONE
hdbuilder is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-08-2017, 11:51 AM   #5
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
Quote:
Originally Posted by TmJones View Post
I looked at three separate scripts that I have and they have the following folders:

1) KVS - admin, blocks, contents, ftp-upload, images, js, langs, player, styles, template, temp
2) Mech Bunny TGP - admin, cache, controllers, core, csv_photos, ftp_photos, includes, media, temp_users_uploads, templates
3) Wordpress - wp-admin, wp-content, wp-includes

A person can tell that this depends of the author of the script and it will be different between the scripts. I am not asking about something as "ftp-upload" or "csv_photos" as I understand what this is but my question would be related to what are the rules of creating something like this and if there are any rules. Or scripts have the admin folder and also the includes folder. What would be the "includes" part, as far as this? I mean I can look inside and figure it out more or less, but are there any rules of creating something like this (like software design model or something like this)? Lets say I want to write a script or scripts like these, what would be the source of information about how to divide this into folders like this. I basically dont have this knowledge at this point.
You can make the schema however you want - it just needs to be logical. There's no "rules" saying you need to use specific folder structure. We have it broken up like we so everything has a clear place, and can be segregated if need be (ie if you need to put the ftp_content directory elsewhere, but not the rest of the videos, so it needs to be separated). If I was to do it again - i'd probably organize ours slightly differently - but we leave it as is with each version because alot of people are very familiar with our script as far as modifying it and we don't want to just up and change everything.

Model View Controller(MVC) In PHP Tutorial
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
scripts, admin, rules, includes, script, folders, creating, folder, csv_photos, ftp-upload, question, related, understand, inside, source, information, write, divide, info, honestly, figure, model, design, software, author



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.