They are actually called heredocs. <?php $menu_html = <<<MENU_DATA <div id="menu"> <strong>Menu</strong> <a href="index.htm">Home Page</a> <a href="articles.htm">Articles</a> <a href="links.htm">Links</a> <a href="forums/" title="Discuss anything in our forums!">Forums</a> </div> MENU_DATA; ?> HTML:
The "<<<" thing works on all PHP versions, 4 or 5, it doesn't matter. CODE cand be replaced with any name you wish, but the same word must be used at the end. See this for documentation : http://www.onlamp.com/pub/a/php/2003/04/10/php_heredocs.html Google has no way to determine if the code was pasted directly from the site or not. Changing colors may be a good thing if your site's users have "ad blindness".
Hello, I've found this thread this morning, for people who think that using PHP is not allowed and who think that when Google says to copy & paste the code means don't use anything else than copy and paste or includes, someone actually asked Google: http://forums.digitalpoint.com/showthread.php?t=81358 For the lazy, the answer is yes you can, of course.
thanks james! it only makes sense that Google agrees with you ....hopefully others will LISTEN and stop scaring new users into tip toeing around the TOS like mice in a cattery!