Show #53: PHP course begins - Week 1 - Lesson #1a
Posted by Jowlstar on Oct 13, 2005
First we opened up a new document in Pspad then we went to week #1 course reading material and started to read the information on that page. We then wrote down our first PHP script in the Pspad and the code for that script was:
PHP:
1
2 <?php
3 // Does my host have PHP, and if so, what version?
4 printf(“Your host is running PHP version %s”,phpversion());
5 ?>
6
2 <?php
3 // Does my host have PHP, and if so, what version?
4 printf(“Your host is running PHP version %s”,phpversion());
5 ?>
6
Then once we finished writing that code we uploaded it into our server via FTP and I found that my code was wrong and had to redo my code several times before I finally got it right.
Links Discussed:
Week #1 course text (Lesson #1a)
Original live airdate: Friday September 23, 2005 at 3:30pm PST / 6:30 pm EST
Webmaster cookBook AUDIO:
Streaming:
20k listen archive stream (dialup users)
64k listen archive stream (broadband)
download 13.4 MB (64k version)
I use a host that’s free and it supports php and mysql. It’s also add free. The only requirement is that you stay active on thier forums. It’s an awesome host. You really should try it out.
A good text editor for windows is notepad2.exe. You can download it at http://www.flos-freeware.ch/notepad2.html. It does text coloring for a lot of different programming languages and is fast and easy to use.