Moderators: phlip, Moderators General, Prelates
Quantum Potatoid wrote:Another example: How would I be able to template a page, so that I wouldn't need to use copypasta to put the main website interface on every page? It would be inconvenient to have to go through every page to edit in changes to the main interface. Randall for example, with >1000 pages of xkcd. (I'm working on the PHP.)
BombSite_A wrote:I like ASP .net. You can put bits of C# code inside the HTML using CSHTML; this, however, is not required and you can build a site fine without knowing and C#. The tool to build the site, WebMatrix, is really useful for setting up and running your site. It's not a very good IDE for debugging purposes though: it doesn't catch errors that will stop it from compiling. It's free though.![]()
Here's a link if you're interested: http://www.microsoft.com/web/webmatrix/
Quantum Potatoid wrote:Another example: How would I be able to template a page, so that I wouldn't need to use copypasta to put the main website interface on every page? It would be inconvenient to have to go through every page to edit in changes to the main interface. Randall for example, with >1000 pages of xkcd. (I'm working on the PHP.)
http://en.wikipedia.org/wiki/DSV_Alvin#Sinking wrote:Researchers found a cheese sandwich which exhibited no visible signs of decomposition, and was in fact eaten.
Quantum Potatoid wrote:Thanks for all the suggestions, guys! Yeah, being a college student I don't have a lot to spend.
Oh, I forgot to add, here is the site that's running the servers I'm using: http://www.namecheap.com/web-hosting/web-hosting.aspx
I'm under the "Professional" plan.
Any suggested PHP resources, since you all have a lot to say on server-side script?
Currently, I'm learning PHP from http://www.w3schools.com/.
freakish777 wrote:The first question to ask, is what type of servers are you using (or planning on using/have access to)? *nix or Windows?
After that, you have have a potentially a myriad of choices (in Unix/Linux) or only a couple (in Windows) as to your "stack."
A common Linux stack is LAMP (Linux, Apache, MySql, PHP), because there are free versions of every piece of software you need.
If you've got lots of money, you could completely go about creating websites with your stack being Windows Server 2012, MS SQL Server 2012, ASP.NET 4 all running on a SharePoint environment. Chances are you don't have a couple million sitting around to make that happen though.
Being a college student, I assume the LAMP stack is probably the more reasonable approach for you. If you have access to Windows Servers, and already know C++, then going to C#/ASP.NET should be fairly simple.
From http://gcov.php.net/viewer.php?version=PHP_5_4
Build Status: OK
Last Build Time: 45 hours
Compile Warnings: 1105
Code Coverage: 70.2%
Test Failures: 97
Expected Test Failures: 44
Valgrind Reports: 58
gametaku wrote:Care to do a cost breakdown of that? oh and make sure to list an equivalent LAMP breakdown.
gametaku wrote:Um, there are free and cheap host for both Windows and Linux Stacks.
If you've got lots of money, you could completely go about creating websites with your stack being Windows Server 2012, MS SQL Server 2012, ASP.NET 4 all running on a SharePoint environment. Chances are you don't have a couple million sitting around to make that happen though.
Care to do a cost breakdown of that? oh and make sure to list an equivalent LAMP breakdown.
freakish777 wrote:...
http://en.wikipedia.org/wiki/DSV_Alvin#Sinking wrote:Researchers found a cheese sandwich which exhibited no visible signs of decomposition, and was in fact eaten.
Sagekilla wrote:I'm a student, and I get free access to:
SQL Server 2005 - 2012 (every edition for each version)
Visual Studio 2005 - 2010 (again, same as above)
Just about every version of Windows
Even if you didn't have access to this, there's no need to use enterprise level software. The project I'm working on now
could have been done just as easily within the Express edition of the software. Unless you're scaling up to massive traffic,
it really isn't necessary to have the expensive software.
Also, for the SharePoint -- From what I've heard interviewing at a number of .NET shops, it's not used as much as you'd think
for front-facing websites. Check on SO also, and you'll see that people try to avoid it as much as possible because it's a horrendous
piece of technology to work with.
Express editions which are still fully featured (I don't know why people don't
think they are)
gametaku wrote:On PHP:
http://me.veekun.com/blog/2012/04/09/ph ... ad-design/
Quantum Potatoid wrote:I managed to learn how to use HTML, CSS, and Javascript, but how would I go about learning more about website building and the conventions themselves?
Also MySQL vs. PostgrSQL?
Xanthir wrote:Unfortunately, I don't really know where to go to learn about general web-mastering. All of my knowledge came from random articles and blogs.Quantum Potatoid wrote:Another example: How would I be able to template a page, so that I wouldn't need to use copypasta to put the main website interface on every page? It would be inconvenient to have to go through every page to edit in changes to the main interface. Randall for example, with >1000 pages of xkcd. (I'm working on the PHP.)
You need to learn a server-side language. The simplest to use is probably PHP.
# makefile
targets = index page1 page2 page3
header = header.html.part
footer = footer.html.part
www = /var/www
dests = $(patsubst %, $(www)/%.html, $(targets))
all: $(dests)
$(dests): $(header) $(footer)
$(www)/%.html: %.html.part
cat $(header) $< $(footer) > $@
<!DOCTYPE html>
<?php include("header.php"); ?>
<h1>My site!</h1>
<p>Stuff goes here.</p>
<?php include("footer.php") ?>
Xanthir wrote:Learning enough PHP to use the "include" command is easier than learning make files.
$output = include './myinclude.php';
echo $output;
Rium wrote:Oh, and is there a better way to put your files on a webserver than one by one with FileZilla?
Rium wrote:Are there any alternatives [to PHP] if I just want to do something like this?
Users browsing this forum: No registered users and 11 guests