Module 6
So, our text says the PHP site has a windows
installer. This appears to no longer be the case. I’m rubbish at manual
downloads. I tried it didn’t work, so I downloaded XAMPP server which has PHP built
in. Could there have been an easier way? Eh, maybe. I watched a tutorial for XAMPP.
I like XAMPP it seems pretty easy and straight forward. I had a hello world program
running in 5 minutes. I really dig my XAMPP server. Now my code using the
include file never worked. I tried the page you are currently not seeing and
then I tried the example verbatim. I never got it working. I gave up on dreamweaver
and went straight to notepad++ it still didn’t work. Maybe my path is wrong? I
spent an insane amount of time trying to get this to work (hours) and reading
forums. I’m still not sure why it doesn’t? My PHP runs on localhost. I had to
quit I had spent like 8 hours total on this stupid thing.
The sprite was kind of fun. I like JSfiddle. You can see my sprite on my website.
The location of the sprite had changed a little bit on the website and so the
width was off. My sprite was going backwards for a little bit until I adjusted
it. This whole thing took maybe 5 minutes.
I can code just fine. It’s using all these different languages that’s messy. I
think I’m over dreamweaver now. Notepad++ is a lot cleaner.
See my failed site
Question # 1
A. PHP server scripts are surrounded by delimiters, which
one?
A3. <?php...?>
Question # 2
B. How do you write "Hello World" in PHP
B1. echo "Hello World"; (although mine used print
when I was testing my XAMPP server they are mostly interchangeable)
Question # 3
C. All variables in PHP start with which symbol?
C2. $
Question # 4
D. What is the correct way to end a PHP statement?
D1. ;
Comments
Post a Comment