» August 9, 2007 in
(Note: You might want to bookmark this post, even if it isn't relevant today it probably will be at some point)My single greatest asset to making money online is the ability to program PHP and Mysql.
I'm not even very good at it by academic standards, many people can code pages in less lines of code than me, many people use better coding architectures, yadayadaya, I don't really care.
What I'm good at is coming up with an idea and having the ability to get it coded very quickly. (And I'm only just beginning to use this "power" muwahahaha). And if time permits I will try and improve the code.
The Internet Experiment asked me the following two questions and I thought I would share the answer for everyone. Each person learns differently so these thoughts may not work for you.
"where I should start learning" to program?
how long does it normally take before I can create something basic?
The easiest way to learn to program is to start programming.
No books required. Create a problem, such as, "I want to program my own blog" and then break it down into small steps. Then research how to do each step on the internet. All the answers are right here. Like this.
First
create a document called myblog.php and put the following text in it:
<?php echo "This is my new blog"; ?>
Then upload that to your server. You should now see a web page that says This is my new blog.
Second
we want to pull some posts to show people. This assumes we have a database with some posts in it.
So go learn to create a table in a mysql database (which is dead simple if your host uses phpMyAdmin). You might need fields like title, date, username, thepost, etc. It's your database and your blog software so it's up to you.
Now that we've got our database (manually put a few posts in it for starters) we need to make the web page read the from the database and put them on the page. So...
Learn how to connect to the database and print the results from the data. Add that code to myblog.php and keep tweaking it until it works and shows the posts from the table in the database you just created.
Third
Now we've learned how to make tables in databases and read the contents out onto our web page, we need to be able to put stuff in the database easily, or create an "admin" area.
You will need to learn how to make a basic php form and get the variables you enter there back into php.
Fourth
Now we have our post to write to the database from our form, we already know how to connect to the database, this time we only want to tell the blog software to INSERT the new info into the table in our database.
Good Job
You now have a blog that is one web page and an admin panel to update the page (whoopie). You obviously might want more features like the ability to leave a comment, pagination, categories, etc. but you can see how breaking things down into small bite sized pieces makes programming them much easier.
That's how I would recommend you learn to program.
Finally
I've been programming for a handful of years (Visual Basic) before I learned PHP so I have a considerable advantage when I started learning than you probably will (I started programming php in 2005). I honestly can't answer how long it would take somebody to learn to program.
If I had to guess you could build the 1 page blog like I mentioned above in a weekend (working most of it). Learning to make more complex applications would probably take months, however the process gets quicker and quicker with each project you build, each line of code you create and can reuse in new projects, etc.
It's not impossible and I would HIGHLY RECOMMEND you start the process now instead of later on your journey, it is a tremendous asset.
However, in the meantime, you can't put your empire on hold, so i would recommend outsourcing the work while you learn to code yourself. In which case google will have just as good a guess as I would who to hire.
Don't delay, start programming today!
Resources:
The PHP Bible.
If you are really down with the book learning here is a free one I liked when I was starting.
I also like HTML KIT as my code editor.
If you like this post then please consider subscribing to my full RSS feed. You can also Subscribe to 45n5 by Email and have new posts sent directly to your inbox.
Andrew says on August 9, 2007
Awesome information..I think I'm going to take your advice. Maybe I'll start working on something over the weekend. Thanks for the awesome advice! And for the link back!
45n5 () says on August 9, 2007:
no problem andrew, have fun learningkoen () says on August 10, 2007:
Luckely I've been coding PHP for a few years already too :) Problem with me is that I can't really think of GREAT ideas... I just create stuff all day long, and later on delete them because my webfolder is too cluttered. But you get more and more speed while doing that, and you become more and more experienced.Carl says on August 10, 2007
I learned the little php that I know hacking scripts. The more you hack them the more you learn and need to learn.
I am no natural so I would rather outsource anything bigger but it is great being to massage scripts.
45n5 () says on August 10, 2007:
@koen - after I changed your name you need to logout and log back in to set a new cookie, just go here, then log back inhttp://www.45n5.com/inc/logout.php
(thanks)
You can program php? awesome. The ideas will come and you are already MILES ahead of the competition
@carl- you hacking scripts is an excellent way to learn (assuming they aren't too complicated), good idea
sarahG () says on August 10, 2007:
The downside for me is that I am a PHP developer, that's what I do 8 hours a day, so then sitting and writing further code during my spare time gets tiring after a while.However it does, of course, save time and money on setting up sites, as does having a hosting reseller account as it doesn't cost you any extra to put the site online. Ideas are pretty stacked on my to do list too...
To be honest the only thing I lack is the time and energy!
Oh, and on the book list I recommend SitePoint books. Free chapters on their site and the books are very good too.
45n5 () says on August 10, 2007:
yeah time and energy are rough ones to conquer. I've been trying to limit my distractions lately and my productivity is going up.headphones on are also helping.
thanks for the sitepoint tip.
The 45n5.com Membership SiteTry MashupMoney.com, $1 for 7 day trial.
Start Your Own Membership SiteAmember rocks, free download and trial.
Create Your Own Mailing ListAweber is the best in the business, check them out.







