Let’s write some code. The line below will go between your two PHP tags. You need a semicolon at the end of each line, except for the last line in a php script. Below is a variable declaration ($color) which must begin with a question mark. The period operator concatenates. […]

PHP Introduction Part 2

Just a few beginner notes on the PHP language. Unlike CGI scripts, which require you to write code to output HTML, PHP lets you embed PHP code in regular HTML pages, and execute the embedded PHP code when the page is requested. Ok, how about a web site for online […]

PHP Introduction

The code below would have a dot php file extension. In WordPress I have shown the code using a plugin called SyntaxHighlighter Evolved in the second bit of code. It looks a lot better than the first bit of code and uses less space also. <html> <head> <title>PHP¬†Test</title> </head> <body> […]

PHP code

How would you create a widget area in your header.php file so that you may put widgets there? In particular, many sites show the log in at the top right corner of your home page. If you are using child themes, you could edit the header.php file, but what code […]

Widget Area in Header