Well, I'm getting downvoted for chatting with you about this.
Why? Is it because this dev is clearly trying hard and looking for support?
I'm GIVING support. Much, much more than I got when I was searching altavista for information about how CGI works.
I don't recommend using PHP for your next project.