Josef Blind ([info]josefblind) wrote,
@ 2007-09-20 22:30:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
When all you have is a hammer, everything looks like a database
What follows may either make little sense to most readers, or will seem really tivial but... I get PHP.

I probably mentioned a few months ago that I was learning PHP for work. It would allow me to generate dynamic content for a website from a database. It was originally made in the mid-90s by a forward thinking guy who wanted to create better websites than pure HTML would allow, even if he didn't have full control of the server.

With the right books, and lots of practice, I've really figured out how to make PHP sing. Learning most of the basics of the language, especially in dealing with MySQL(the open source database language much of the net is hiding in).

Coupled with a decent knowledge of CSS and HTML, PHP has really opened up what I can do on using the Internet. I've started automating tedious tasks that I didn't enjoy doing in the past. I've looked at problems and saw ways I could solve them using PHP. I've even started thinking in little chunks of code on sometimes.

My goal is to try to track down some people that need coding done to pick up some extra money.

Before I go though...

A few things that are awesome about PHP

-It's server side, which means no cross-browser issues like with javascript
-It's server side, which means it's more secure than javascript (though I haven't started closing off my scripts to SQL injection attacks yet)
-The documentation is available online, and it's popular so usually if I have a problem, someone else has had it.
-No declaring variable types.
-It can be used in neat tricks (like dynamically generating a select box)
-It is not C++ (Which I'm still probably going to have to learn).



(Post a new comment)


[info]_mjf_
2007-09-21 01:56 pm UTC (link)
PHP is awesome.

(Reply to this)


[info]jpfed
2007-09-21 02:11 pm UTC (link)
Raised in the old-fashioned tradition of systems languages of the Midwest, I don't cotton to your newfangled dynamically-typed scripting languages.

(Reply to this) (Thread)


[info]_mjf_
2007-09-21 04:04 pm UTC (link)
#include
[Error: Irreparable invalid markup ('<iostream.h>') in entry. Owner must fix manually. Raw contents below.]

#include <iostream.h>

int main () {
int i;
int thismany=1;

for (i=1; i<12; i++) {
thismany = thismany * i;
}

cout << "How many times has C++ driven me crazy?" << endl
<< thismany << "!!!" << endl;
return 0;
}

(Reply to this) (Parent)(Thread)


[info]_mjf_
2007-09-21 04:05 pm UTC (link)
I'll have you know that before I foolishly put it into an HTML form, my indenting and spacing were impeccable.

(Reply to this) (Parent)(Thread)


[info]jpfed
2007-09-21 04:10 pm UTC (link)
I'm all about the pre tag.

(Reply to this) (Parent)


[info]littletinyfish
2007-09-21 05:27 pm UTC (link)
I'd like to get there eventually, but first I have to figure out the finer workings of TextPattern.

(Reply to this) (Thread)


[info]josefblind
2007-09-21 05:39 pm UTC (link)
How do you like TextPattern? I've played around with some other CMS programs (drupal and joomla) but haven't really found one that I liked.

(Reply to this) (Parent)(Thread)


[info]littletinyfish
2007-09-21 06:15 pm UTC (link)
I found it to be a little overwhelming at first, but I think that's partially because I wasn't used to that mode of thinking and also my brother set it up, so I didn't really know what I was looking for.

But after a little bit of messing around I got the general hang of it. I'm gonna be setting up another site with Text Pattern by myself, so hopefully that'll give me a better understanding of how to more efficiently use the program.

(Reply to this) (Parent)


Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…