/    Sign up×
Community /Pin to ProfileBookmark

How to make decent php website

Maybe this question has been posted before but I can’t find something similar. I want to make simple php site and don’t know how to begin. I assume that there are better way than just pile up functions and code and later when I would want to change something it will be difficult. Is there some template (structure of website, best practices) which is good to start with, but it shouldn’t be something difficult because website is really small for now. All I can find are frameworks that are too big?

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@daihuwsOct 03.2012 — This rather depends on what you're hoping to achieve by using PHP; first define what you're hoping to achieve, you'll have a better chance of getting a meaningful response from the community...
Copy linkTweet thisAlerts:
@molossusOct 04.2012 — here is a basic template that will help you make a basic site, the files that have ".inc.php" are files that go in

a include folder. basically you can add a lot of pages and just have to include the header, footer and sidebar. only the content of the page will be different.

index.php -> http://pastebin.com/59i9Ea1b

footer.php -> http://pastebin.com/ptXppPzD

header.inc.php -> http://pastebin.com/cyDyEdgk

sidebar.php -> http://pastebin.com/QaZfUtC9

title.inc.php -> http://pastebin.com/nKYxgRQh

main.css -> http://pastebin.com/Aik2Tj8b
×

Success!

Help @nenadvr spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...