2016-07-27 PHP Testing, 1, 2, 3

<?php echo “<p>Testing my new PHP function.</p>”; ?>

Doesn’t work in attempts to embed in content-area.  I also tried other places, but it ‘broke’ the code of the theme. Changed the theme to twelve for now.

Update on 2016-07-30: I have spent the last two days using Cloud9 to test PHP code and copy proven snipets to twelve successfully. I cannot remember exactly what else I wanted to do, so I am going through the code section of PHP in PHP, MySQL, JavaScript & HTML5 All-in-One For Dummies, which has proved reasonably accurate so far.  I have corrected (library) book in a few notations where print faded.  However, the statement that single quotes are interpreted as literals does not seem to work in Cloud9. Everytime I put in a variable name that matches, even without the preceeding dollar sign, strange things happen.  I may pursue this later, but for now I am happy that I have added this statement to theme twelve successfully:


        <?php
	echo ‘<br /> &copy;’;
	echo date("Y");
	echo ‘Creative Aspects, Inc.’;
        ?> 

This produces: Content ©2016 Creative Aspects, Inc.
Note that this was hard to get into Word Press post because the editing took place and converted text to html even using the Text tab, so all HTML symbols were used for less than, greater than, left single quote, right single quote AND ampersand.

Added function to actually get the year from posted/updated. Look at source code of the pages to actually see the function called auto_copyright.