techPowerUp! Forums

Go Back   techPowerUp! Forums > Software > Programming & Webmastering

Reply
 
Thread Tools
Old May 5, 2012, 05:37 PM   #1
3870x2
3500 Posts
 
3870x2's Avatar
 
Join Date: Feb 2008
Location: Joplin, Mo
Posts: 4,543 (2.38/day)
Thanks: 175
Thanked 691 Times in 557 Posts
Send a message via Skype™ to 3870x2

System Specs

New website: Use CMS or build from ground-up?

I am about to embark on creating a website for a small metropolitan area where users have a common forum to post things for sale, and also a community forum. The community forum is an easy one due to there being many great systems out there, some even free.

I am not sure if there is a Content Management System directly aimed at what I am looking to do, and building from the ground up could take a long time. I don't want to reinvent the wheel so to speek when developing this system, but if I have to, I will start from scratch.

To be more specific, this is going to be like craigslist, but only local to about a population of 200,000. As a guide, I will take things I have learned from a company like Bookoo, which makes http://www.campbellyardsales.com.

I am willing to invest a great deal of time and money, and am not looking for business advice or realizations. I am well versed in programming languages, and have created websites. Interacting with SQL and PHP are my weak points, as I have minimal experience, but will definitely learn. This website must be able to function on a remote hosted server at first. Depending on the popularity, the system will be upgraded as needed.

This website will be free to all users.

Thank you all for your time in reading this, I look forward to your suggestions!
__________________
A+, N+, S+, MCSE.
Heatware
STEAM ID Name: furi0nst0rmrage (0s are zeros)
M O D E R N||W A R F A R E || 2 || CLUBHOUSE // TEAM
The amount exaltation of the processor cores can brings amazing floating” -sparkle
3870x2 is offline  
Reply With Quote
Old May 5, 2012, 05:49 PM   #2
W1zzard
Benevolent Dictator
 
W1zzard's Avatar
 
Join Date: May 2004
Location: Stuttgart, Germany
Posts: 13,770 (4.18/day)
Thanks: 184
Thanked 10,218 Times in 3,161 Posts
Send a message via ICQ to W1zzard Send a message via AIM to W1zzard Send a message via MSN to W1zzard

System Specs

Given your previous experience in programming and that a SQL and PHP project will be a rewarding learning experience I'd say make your own.

You really want to use PHP, Apache and MySQL. Don't worry about performance, do things the easy most productive way.

If you have a forum software, consider using the forum for content/user/permissions storage (that's how we do it at TPU). Saves a lot of time because you don't have to code the backend admin stuff.

Also I strongestly recommend using a templating system like smarty (best one I know of).

I'm not a big fan of PHP MVC or other frameworks. Separating some stuff into classes might help with maintanability, but PHP works great without. At TPU only like 50% of our code is in classes, I work on it from time to time, objectifying old code, but it's barely worth it.

If you have any specific questions once you are further with the project and have exhausted your Google options, ask me any time.

Security is important, make sure to escape all user input, query strings and anything else that comes in externally. If you use numeric input values (e.g. for ids in urls), make sure you put those in quotes before sending to mysql. "SELECT foo FROM bar WHERE id=$id" is bad because -1 (which might pass "is numeric" checks) will break the SQL statement. SELECT foo FROM bar WHERE id='$id' = good

Last edited by W1zzard; May 5, 2012 at 05:54 PM.
W1zzard is offline  
Reply With Quote
The Following 2 Users Say Thank You to W1zzard For This Useful Post:
Old May 5, 2012, 06:12 PM   #3
Jizzler
2000 Posts
 
Jizzler's Avatar
 
Join Date: Aug 2007
Location: Geneva, FL, USA
Posts: 3,010 (1.43/day)
Thanks: 567
Thanked 606 Times in 487 Posts

System Specs

Ground up! (my knee jerk reaction)


But now that I've read your post, it can go either way. With a limited user base your site won't require a lean from-scratch framework nor would you need to have some elaborate setup to handle the load. As well, everything to get a community forum up and running is available in many forms. Unless there is something unique you want this site to feature, you'll probably find the right wheels for it.

Biggest thing seems to be giving it a consistent feel that reflects your locale, as well as any interaction between software from different parties.
Jizzler is offline  
Reply With Quote
The Following User Says Thank You to Jizzler For This Useful Post:
Old May 5, 2012, 06:29 PM   #4
PopcornMachine
1000 Posts
 
PopcornMachine's Avatar
 
Join Date: Aug 2009
Location: Los Angeles/Orange County CA
Posts: 1,125 (0.82/day)
Thanks: 1,991
Thanked 372 Times in 302 Posts

System Specs

I'm old school. Use Perl cgi to generate html and make calls to MySQL.
PopcornMachine is offline  
Reply With Quote
The Following User Says Thank You to PopcornMachine For This Useful Post:
Old May 5, 2012, 06:43 PM   #5
W1zzard
Benevolent Dictator
 
W1zzard's Avatar
 
Join Date: May 2004
Location: Stuttgart, Germany
Posts: 13,770 (4.18/day)
Thanks: 184
Thanked 10,218 Times in 3,161 Posts
Send a message via ICQ to W1zzard Send a message via AIM to W1zzard Send a message via MSN to W1zzard

System Specs

Quote:
Originally Posted by PopcornMachine View Post
I'm old school. Use Perl cgi to generate html and make calls to MySQL.
unless you are some sort of perl guru i doubt your productivity creating and maintaining perl code is better than vs. a typical php programmer.
W1zzard is offline  
Reply With Quote
Old May 5, 2012, 06:44 PM   #6
3870x2
3500 Posts
 
3870x2's Avatar
 
Join Date: Feb 2008
Location: Joplin, Mo
Posts: 4,543 (2.38/day)
Thanks: 175
Thanked 691 Times in 557 Posts
Send a message via Skype™ to 3870x2

System Specs

Looks like ill build mostly from the ground up using the forum softwares database.

It also looks like I will have quite some learning to do altogether. I was expecting this to be a very long project, and plan to embrace that and the learning I plan to do.

Can anyone give me a great centralized location to better learn interactions between the front-end programming and SQL/PHP?

Thank you all for your help so far.
__________________
A+, N+, S+, MCSE.
Heatware
STEAM ID Name: furi0nst0rmrage (0s are zeros)
M O D E R N||W A R F A R E || 2 || CLUBHOUSE // TEAM
The amount exaltation of the processor cores can brings amazing floating” -sparkle
3870x2 is offline  
Reply With Quote
Old May 5, 2012, 06:49 PM   #7
W1zzard
Benevolent Dictator
 
W1zzard's Avatar
 
Join Date: May 2004
Location: Stuttgart, Germany
Posts: 13,770 (4.18/day)
Thanks: 184
Thanked 10,218 Times in 3,161 Posts
Send a message via ICQ to W1zzard Send a message via AIM to W1zzard Send a message via MSN to W1zzard

System Specs

Quote:
Originally Posted by 3870x2 View Post
Can anyone give me a great centralized location to better learn interactions between the front-end programming and SQL/PHP?
you can do the simple approach just building your query as string, connect to database, iterate over results, do stuff.

PHP Code:
// connect to database here
  
$SQL="SELECT * FROM newsiconslist ORDER BY label;";
  
$result=mysql_query($SQL) or die ("Invalid query: " mysql_error());
  while(
$row=mysql_fetch_assoc($result))
  { 
// do stuff } 
many people prefer some sort of database abstraction layer: http://www.php.net/manual/en/refs.database.abstract.php

if you build a system from the ground up this could be a viable choice
W1zzard is offline  
Reply With Quote
Old May 5, 2012, 07:00 PM   #8
Kreij
Hardcore Monkey Moderator
 
Kreij's Avatar
 
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,114 (5.27/day)
Thanks: 591
Thanked 5,492 Times in 2,936 Posts

System Specs

Bah, be a man !! ... use ASP.NET with C# code-behind on a SQLServer backend.
__________________

Cloud (noun, singular): A dynamic arrangement of multiple potential single points of failure, with a user at one end and their data at the other.


Get more tech news on a wide variety of topics at NextPowerUp
Kreij is online now  
Reply With Quote
The Following User Says Thank You to Kreij For This Useful Post:
Old May 5, 2012, 07:13 PM   #9
W1zzard
Benevolent Dictator
 
W1zzard's Avatar
 
Join Date: May 2004
Location: Stuttgart, Germany
Posts: 13,770 (4.18/day)
Thanks: 184
Thanked 10,218 Times in 3,161 Posts
Send a message via ICQ to W1zzard Send a message via AIM to W1zzard Send a message via MSN to W1zzard

System Specs

Quote:
Originally Posted by Kreij View Post
Bah, be a man !! ... use ASP.NET with C# code-behind on a SQLServer backend.
and get locked in the microsoft corner ?

oh and for client side javascript, jquery is good stuff, we started using it at tpu a few months ago, and it increases productivity a ton. just make sure your site is completely usable with js disabled
W1zzard is offline  
Reply With Quote
Old May 5, 2012, 07:19 PM   #10
Kreij
Hardcore Monkey Moderator
 
Kreij's Avatar
 
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,114 (5.27/day)
Thanks: 591
Thanked 5,492 Times in 2,936 Posts

System Specs

Someone has to be a Microsoft fanboy. Might as well me me. lol
I'm worked in most of the MS langauges and extensively with SQLServer, so I'm more familiar with them. Even though they are proprietary ("locked in their corner") they do have some nice stuff.
__________________

Cloud (noun, singular): A dynamic arrangement of multiple potential single points of failure, with a user at one end and their data at the other.


Get more tech news on a wide variety of topics at NextPowerUp
Kreij is online now  
Reply With Quote
Old May 5, 2012, 07:21 PM   #11
W1zzard
Benevolent Dictator
 
W1zzard's Avatar
 
Join Date: May 2004
Location: Stuttgart, Germany
Posts: 13,770 (4.18/day)
Thanks: 184
Thanked 10,218 Times in 3,161 Posts
Send a message via ICQ to W1zzard Send a message via AIM to W1zzard Send a message via MSN to W1zzard

System Specs

Quote:
Originally Posted by Kreij View Post
Someone has to be a Microsoft fanboy. Might as well me me. lol
I'm worked in most of the MS langauges and extensively with SQLServer, so I'm more familiar with them. Even though they are proprietary ("locked in their corner") they do have some nice stuff.
asp.net has nice stuff, but i find that not enough to justify the increased cost and platform requirements.
W1zzard is offline  
Reply With Quote
The Following User Says Thank You to W1zzard For This Useful Post:
Old May 5, 2012, 07:23 PM   #12
PopcornMachine
1000 Posts
 
PopcornMachine's Avatar
 
Join Date: Aug 2009
Location: Los Angeles/Orange County CA
Posts: 1,125 (0.82/day)
Thanks: 1,991
Thanked 372 Times in 302 Posts

System Specs

Quote:
Originally Posted by W1zzard View Post
unless you are some sort of perl guru i doubt your productivity creating and maintaining perl code is better than vs. a typical php programmer.
Maybe not. Only know a little php.

I do know Perl pretty well. Been using it for over 10 years. Works for me.
PopcornMachine is offline  
Reply With Quote
Old May 5, 2012, 07:26 PM   #13
3870x2
3500 Posts
 
3870x2's Avatar
 
Join Date: Feb 2008
Location: Joplin, Mo
Posts: 4,543 (2.38/day)
Thanks: 175
Thanked 691 Times in 557 Posts
Send a message via Skype™ to 3870x2

System Specs

Quote:
Originally Posted by PopcornMachine View Post
Maybe not. Only know a little php.

I do know Perl pretty well. Been using it for over 10 years. Works for me.
If I were to follow this line of thinking, I would still be programming in qbasic
__________________
A+, N+, S+, MCSE.
Heatware
STEAM ID Name: furi0nst0rmrage (0s are zeros)
M O D E R N||W A R F A R E || 2 || CLUBHOUSE // TEAM
The amount exaltation of the processor cores can brings amazing floating” -sparkle
3870x2 is offline  
Reply With Quote
Old May 5, 2012, 07:26 PM   #14
W1zzard
Benevolent Dictator
 
W1zzard's Avatar
 
Join Date: May 2004
Location: Stuttgart, Germany
Posts: 13,770 (4.18/day)
Thanks: 184
Thanked 10,218 Times in 3,161 Posts
Send a message via ICQ to W1zzard Send a message via AIM to W1zzard Send a message via MSN to W1zzard

System Specs

Quote:
Originally Posted by 3870x2 View Post
If I were to follow this line of thinking, I would still be programming in qbasic
those people use vb.net now
W1zzard is offline  
Reply With Quote
Old May 5, 2012, 07:31 PM   #15
PopcornMachine
1000 Posts
 
PopcornMachine's Avatar
 
Join Date: Aug 2009
Location: Los Angeles/Orange County CA
Posts: 1,125 (0.82/day)
Thanks: 1,991
Thanked 372 Times in 302 Posts

System Specs

Quote:
Originally Posted by 3870x2 View Post
If I were to follow this line of thinking, I would still be programming in qbasic
Well, if I were you I would just use PHP. That's the thing to learn now.

There is a wealth of information out there on it. And database access is pretty straight forward.

I have thought about switching over one of these days, but just a creature of habit I guess.

The example Wizard gave shows how simple it is. Of course there's all the parsing and formatting and html generation. But that's the fun stuff!

But I certainly wouldn't pay money. Too many free ways to make a web site.
PopcornMachine is offline  
Reply With Quote
Old May 5, 2012, 07:35 PM   #16
Jizzler
2000 Posts
 
Jizzler's Avatar
 
Join Date: Aug 2007
Location: Geneva, FL, USA
Posts: 3,010 (1.43/day)
Thanks: 567
Thanked 606 Times in 487 Posts

System Specs

Quote:
Originally Posted by Kreij View Post
Someone has to be a Microsoft fanboy. Might as well me me. lol
I'm worked in most of the MS langauges and extensively with SQLServer, so I'm more familiar with them. Even though they are proprietary ("locked in their corner") they do have some nice stuff.
It's true (mostly)

These days PHP/IIS (7.0, 7.5) is at the level of PHP/Apache thanks to work done my MS to improve installation and reduce nuances of PHP in Windows. They also provide the driver for MSSQL connectivity now (before you had to use an antiquated driver or generic ODBC, sucked). So it all comes down to familiarity with platform and/or cost, if they apply.

I use whatever I'm told to use (contract worker)
Jizzler is offline  
Reply With Quote
Old May 5, 2012, 07:38 PM   #17
PopcornMachine
1000 Posts
 
PopcornMachine's Avatar
 
Join Date: Aug 2009
Location: Los Angeles/Orange County CA
Posts: 1,125 (0.82/day)
Thanks: 1,991
Thanked 372 Times in 302 Posts

System Specs

Forgot to add that I embed a lot of Javascript too. Very handy stuff.

You can take a look here: http://popcornmachine.net
PopcornMachine is offline  
Reply With Quote
Old May 5, 2012, 07:40 PM   #18
Kreij
Hardcore Monkey Moderator
 
Kreij's Avatar
 
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,114 (5.27/day)
Thanks: 591
Thanked 5,492 Times in 2,936 Posts

System Specs

Quote:
Originally Posted by W1zzard View Post
those people use vb.net now
This from the guy still using MFC and GDI+.

Yeah, it's hard to compete with "Free" (MySQL), and websites with unlimitted storage and bandwidth are crazy cheap nowadays (unless you want a dedicated server).
__________________

Cloud (noun, singular): A dynamic arrangement of multiple potential single points of failure, with a user at one end and their data at the other.


Get more tech news on a wide variety of topics at NextPowerUp
Kreij is online now  
Reply With Quote
Old May 5, 2012, 07:51 PM   #19
W1zzard
Benevolent Dictator
 
W1zzard's Avatar
 
Join Date: May 2004
Location: Stuttgart, Germany
Posts: 13,770 (4.18/day)
Thanks: 184
Thanked 10,218 Times in 3,161 Posts
Send a message via ICQ to W1zzard Send a message via AIM to W1zzard Send a message via MSN to W1zzard

System Specs

Quote:
Originally Posted by Kreij View Post
This from the guy still using MFC
no requirement for .net runtime and stopping people from disassembling my stuff are major factors.

i do some c# for simple software that's used internally and requires no hardware access

i doubt .net would increase my productivity much though. i'm really good with mfc, making custom components etc is no problem.

Quote:
Originally Posted by Kreij View Post
unless you want a dedicated server
dedicated is dirt cheap too, especially with virtualized taken into account
W1zzard is offline  
Reply With Quote
Old May 5, 2012, 08:03 PM   #20
Kreij
Hardcore Monkey Moderator
 
Kreij's Avatar
 
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,114 (5.27/day)
Thanks: 591
Thanked 5,492 Times in 2,936 Posts

System Specs

I know, W1zz, we talked about what you use for GPU-Z before and why.
Just a friendly jab.

I've created static classes to address the shortcomings of some of the MS APIs, so I just drop them into projects when I need them with no loss of productivity for what I mostly do (database apps).

I have my domain parked on a non-dedicated server with no limits on bandwidth and storage (although it is Linux and MySQL) for $6 a month. I remember when you couldn't even GET a GB of storage if you wanted it. This is also the reason that "cloud based" backup companies are quite the rip-off from my perspective.

What kind dedicated pricing are you seeing? Still seems pricey for a start-up site.
__________________

Cloud (noun, singular): A dynamic arrangement of multiple potential single points of failure, with a user at one end and their data at the other.


Get more tech news on a wide variety of topics at NextPowerUp
Kreij is online now  
Reply With Quote
Old May 5, 2012, 08:30 PM   #21
3870x2
3500 Posts
 
3870x2's Avatar
 
Join Date: Feb 2008
Location: Joplin, Mo
Posts: 4,543 (2.38/day)
Thanks: 175
Thanked 691 Times in 557 Posts
Send a message via Skype™ to 3870x2

System Specs

Ive seen dedicated hosting around $350, and I am not in the position just yet to launch it from home, though by the time the site is coded and ready to launch, I probably will be.

EDIT: This was checked a while back, and from surpasshosting.com
__________________
A+, N+, S+, MCSE.
Heatware
STEAM ID Name: furi0nst0rmrage (0s are zeros)
M O D E R N||W A R F A R E || 2 || CLUBHOUSE // TEAM
The amount exaltation of the processor cores can brings amazing floating” -sparkle
3870x2 is offline  
Reply With Quote
Old May 5, 2012, 08:57 PM   #22
Kreij
Hardcore Monkey Moderator
 
Kreij's Avatar
 
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,114 (5.27/day)
Thanks: 591
Thanked 5,492 Times in 2,936 Posts

System Specs

Inmotion has dedicated servers starting at $200/mo. Didn't look at the details though.
I'll get my site up and running as soon as I come up with something to do with it.
__________________

Cloud (noun, singular): A dynamic arrangement of multiple potential single points of failure, with a user at one end and their data at the other.


Get more tech news on a wide variety of topics at NextPowerUp
Kreij is online now  
Reply With Quote
Old May 5, 2012, 09:06 PM   #23
AthlonX2
Better Than You
 
AthlonX2's Avatar
 
Join Date: Sep 2006
Location: Toledo,Ohio
Posts: 5,449 (2.24/day)
Thanks: 729
Thanked 1,572 Times in 994 Posts

System Specs

Quote:
Originally Posted by PopcornMachine View Post
Forgot to add that I embed a lot of Javascript too. Very handy stuff.

You can take a look here: http://popcornmachine.net
if i ever need old NBA scores i know where to go now!!
AthlonX2 is offline  
Reply With Quote
The Following User Says Thank You to AthlonX2 For This Useful Post:
Old May 5, 2012, 09:08 PM   #24
W1zzard
Benevolent Dictator
 
W1zzard's Avatar
 
Join Date: May 2004
Location: Stuttgart, Germany
Posts: 13,770 (4.18/day)
Thanks: 184
Thanked 10,218 Times in 3,161 Posts
Send a message via ICQ to W1zzard Send a message via AIM to W1zzard Send a message via MSN to W1zzard

System Specs

check webhostingtalk forums dedicated offers section for good priced servers.

honelive.com has great prices, we use them for our email server and techpowerup.org. never had any issues. there are many providers offering dedicateds around $50 and below.

for bigger hosting go with softlayer. they are awesome and we never looked back. make sure to ask for a custom quote
W1zzard is offline  
Reply With Quote
The Following User Says Thank You to W1zzard For This Useful Post:
Old May 5, 2012, 09:12 PM   #25
3870x2
3500 Posts
 
3870x2's Avatar
 
Join Date: Feb 2008
Location: Joplin, Mo
Posts: 4,543 (2.38/day)
Thanks: 175
Thanked 691 Times in 557 Posts
Send a message via Skype™ to 3870x2

System Specs

Not going to be big at first, and assuming this is successful, I should see no more traffic than 10-20k uniques per day.
After skimming w3schools.com, it seems that programming the site will be fairly easy, albeit very time consuming.
I know that Surpasshosting has an excellent control panel, which is always a good thing.
__________________
A+, N+, S+, MCSE.
Heatware
STEAM ID Name: furi0nst0rmrage (0s are zeros)
M O D E R N||W A R F A R E || 2 || CLUBHOUSE // TEAM
The amount exaltation of the processor cores can brings amazing floating” -sparkle
3870x2 is offline  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Electrified roads could power cars from the ground up qubit Science & Technology 8 Sep 15, 2011 12:46 AM
Rebuilt from the ground up my 10TB server. thebeephaha General Hardware 43 May 14, 2009 07:15 PM
A new website. Is it from ATI?? We shall soon see... EastCoasthandle AMD / ATI 11 Jun 13, 2008 09:55 AM


All times are GMT. The time now is 09:25 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
no new posts