While interviewing for a job on Friday, I realized would make sense for me to learn the PHP programming language. Later during the office tour, I met a PHP programmer. "PHP?" I said, "I'm going to learn PHP this weekend
( Read more... )
I always chuckle when computer people act like their skills are so amazing. Once you know how to program, it doesn't take long to learn a new language. I've learned most of the things I need in C++ in the last two days! I don't know what PHP is, but I'm sure a bright guy like you will master it in no time.
Since 300 Baud, baby. Eight years old and dialing out to a mainframe to play a little game called Quest. I don't code, but I've always used computers and can bend most any Windows system to my will.
Later on this afternoon I'll give a writeup as to what I'm doing starting next week. It's going to be a hoot. :)
It's going to be one hell of a ride. I think I'm going to lock that post in a little while.
It's good to know all kinds of geeks. What flavor are you? I know you're one hell of a drummer. I'm guessing the logic in the rhythm transfers nicely to code. :)
Comments 7
fopen($site,"r") or die("Unable to connect to $site");
Reply
Reply
That's the rub. Before Saturday I had never written any code but Basic, and that was 20 years ago. It's been an exciting few days.
Reply
If you already know C, then PHP is a snap. It's basically C with dollar signs. :-)
My favorite functions in php are file_get_contents() and file_put_contents().
$some_long_content =
file_put_contents("my_file", $some_long_content);
done!
(Well, you should really check for an error as well, but hey.)
php.net is a great resource. I assume you've been there by now...
The one tricky bit about PHP is type-sensitive compares. Make sure you understand this bit of code:
$a = 0;
$b = FALSE;
$c = NULL;
$a == $b is TRUE
$a == $c is TRUE
$a === $b is FALSE
$a === $c is FALSE
Reply
Reply
Later on this afternoon I'll give a writeup as to what I'm doing starting next week. It's going to be a hoot. :)
Reply
It's going to be one hell of a ride. I think I'm going to lock that post in a little while.
It's good to know all kinds of geeks. What flavor are you? I know you're one hell of a drummer. I'm guessing the logic in the rhythm transfers nicely to code. :)
Reply
Leave a comment