{"id":2438,"date":"2007-12-28T04:42:19","date_gmt":"2007-12-28T11:42:19","guid":{"rendered":"http:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/?p=2438"},"modified":"2008-01-04T23:21:47","modified_gmt":"2008-01-05T06:21:47","slug":"speaking-in-tongues-dynamically-updated-lists-of-links-in-php","status":"publish","type":"post","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/2438\/speaking-in-tongues-dynamically-updated-lists-of-links-in-php\/","title":{"rendered":"Speaking in tongues: Dynamically updated lists of links in PHP"},"content":{"rendered":"<p>Let&#8217;s get dynamic, shall we? There are a lot of things you can say about PHP &#8212; and some of them are even safe for work. But, at bottom, PHP is a working stiff&#8217;s programming language for producing dynamic web pages.<\/p>\n<p>What&#8217;s a dynamic web page? It&#8217;s a page that reflects a user&#8217;s actions or editing without requiring manual editing of each little line of HTML. In the world of AJAX coding, web pages are becoming so dynamic that they seem to mimic the behavior of stand-alone complied applications. Calm down. We&#8217;re not going to do anything that sexy. And while we will actually be introducing real bona fide PHP programming in this post, you can dial down the palpitations: We will be doing precisely <i>one line<\/i> of PHP programming. Everything else will be familiar old HTML.<\/p>\n<p>Okay then: Go take a look <a href=\"http:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/?p=2103\" target=\"_blank\">at this article on HR 3915<\/a>. Brian Brady wrote that post, and it was one of our most popular entries this year. BloodhoundBlog is the home of big stories on the RE.net, and, when we cover a big story, I do everything I can to make sure that readers &#8212; especially readers arriving from search engines or by hard clicks from non-RE.net sites &#8212; don&#8217;t miss the full extent of our coverage.<\/p>\n<p>So, if you scroll down in that post, you&#8217;ll see a bullet list of links to other posts with the heading &#8220;More on HR 3915.&#8221;<\/p>\n<p>That list of links is done with PHP.<\/p>\n<p>The actual list is simply a file of plain vanilla HTML &#8212; no PHP programming. The file for this list of links is called HR3915.php. It looks like this:<\/p>\n<pre>&amp;nbsp;&lt;br&gt;&amp;nbsp;&lt;br&gt;&lt;B&gt;&lt;I&gt;More on HR\r\n3915:&lt;\/I&gt;&lt;\/B&gt;&lt;UL&gt;\r\n&lt;li&gt;&lt;a\r\nhref=\"http:\/\/www.mortgageratesreport.com\/2007\/11\/\r\n15\/daily-kos-on-hr-3915-mortgage-industry-set-to\"\r\ntarget=\"_blank\"&gt;Daily Kos on HR 3915: Mortgage\r\nIndustry Set To&lt;\/a&gt;\r\n&lt;li&gt;&lt;a\r\nhref=\"http:\/\/www.bloodhoundrealty.com\/\r\nBloodhoundBlog\/?p=2217\" target=\"_blank\"&gt;HR 3915:\r\nWhy Federally-Chartered Banks Get The Pass&lt;\/a&gt;\r\n&lt;li&gt;&lt;a\r\nhref=\"http:\/\/www.bloodhoundrealty.com\/\r\nBloodhoundBlog\/?p=2200\" target=\"_blank\"&gt;HR 3915:\r\nOpen Letter to Senator Dodd from a Veteran\r\nMortgage Originator&lt;\/a&gt;\r\n&lt;li&gt;&lt;a\r\nhref=\"http:\/\/www.mortgageratesreport.com\/2007\/11\/\r\n08\/hr-3915-legislating-to-armageddon\"\r\ntarget=\"_blank\"&gt;HR 3915- Legislating to\r\nArmageddon&lt;\/a&gt;\r\n&lt;li&gt;&lt;a\r\nhref=\"http:\/\/blownmortgage.com\/2007\/11\/07\/hr-3915-\r\nmortgage-reform-bill-passes-committee-with-\r\nimportant-changes\/\" target=\"_blank\"&gt;H.R. 3915\r\nMortgage Reform Bill Passes Committee with\r\nImportant Changes&lt;\/a&gt;\r\n&lt;li&gt;&lt;a\r\nhref=\"http:\/\/www.bloodhoundrealty.com\/\r\nBloodhoundBlog\/?p=2176\" target=\"_blank\"&gt;HR 3915:\r\nAnti-Consumer Bank Protection Act of 2007&lt;\/a&gt;\r\n&lt;li&gt;&lt;a\r\nhref=\"http:\/\/www.bloodhoundrealty.com\/\r\nBloodhoundBlog\/?p=2153\" target=\"_blank\"&gt;HR 3915:\r\nExploring the Minds of the Enablers&lt;\/a&gt;\r\n&lt;li&gt;&lt;a\r\nhref=\"http:\/\/www.bloodhoundrealty.com\/\r\nBloodhoundBlog\/?p=2112\" target=\"_blank\"&gt;HR 3915 Is\r\nDangerous&lt;\/a&gt;\r\n&lt;li&gt;&lt;a\r\nhref=\"http:\/\/www.bloodhoundrealty.com\/\r\nBloodhoundBlog\/?p=2103\" target=\"_blank\"&gt;HR 3915:\r\nMortgage Reform and Anti-Predatory Lending Act of\r\n2007&lt;\/a&gt;\r\n&lt;\/UL&gt;<\/pre>\n<p>(It&#8217;s cleaner than that in real life. I had to introduce line breaks to keep it from screwing <a href=\"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/2438\/speaking-in-tongues-dynamically-updated-lists-of-links-in-php\/#more-2438\" class=\"more-link\">Read more<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s get dynamic, shall we? There are a lot of things you can say about PHP &#8212; and some of them are even safe for work. But, at bottom, PHP is a working stiff&#8217;s programming language for producing dynamic web pages. What&#8217;s a dynamic web page? It&#8217;s a page that reflects a user&#8217;s actions or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,6,5,19],"tags":[],"class_list":{"0":"post-2438","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-blogging","7":"category-marketing","8":"category-real-estate","9":"category-technology","11":"no-featured-image"},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1298,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/1298\/real-estate-weblogging-101-our-story-so-far\/","url_meta":{"origin":2438,"position":0},"title":"Real Estate Weblogging 101: Our story so far","author":"Greg Swann","date":"April 13, 2007","format":false,"excerpt":"Here's a true fact of weblogging: Sometimes you decide you want to do something that requires you to go back and edit 30 or 40 posts. As an example, imagine that you decided you wanted to add a new category. You would have to go back and re-categorize all the\u2026","rel":"","context":"In &quot;Blogging&quot;","block_context":{"text":"Blogging","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/blogging\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2465,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/2465\/speaking-in-tongues-for-morgan-brown-a-quick-and-dirty-contributors-blogroll\/","url_meta":{"origin":2438,"position":1},"title":"Speaking in tongues for Morgan Brown: A quick and dirty contributors&#8217; blogroll","author":"Greg Swann","date":"January 3, 2008","format":false,"excerpt":"I know I promised to do nothing but \"includes,\" and we'll come back to those soon, but here is a real PHP routine, doing an actual real world job. What does it do? For a multi-author weblog like BloodhoundBlog, it produces a blogroll of the contributors' weblogs or web sites.\u2026","rel":"","context":"In &quot;Blogging&quot;","block_context":{"text":"Blogging","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/blogging\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2433,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/2433\/speaking-in-tongues-presentable-php-in-wordpress\/","url_meta":{"origin":2438,"position":2},"title":"Speaking in tongues: Presentable PHP in WordPress","author":"Greg Swann","date":"December 27, 2007","format":false,"excerpt":"In the coming days, I plan to take up the idea of PHP for non-programmers, helping you tap the power of PHP's dynamic text processing without learning (much) actual coding. The problem is that illustrating HTML or PHP in WordPress is always a problem. Why? Because WordPress eats code for\u2026","rel":"","context":"In &quot;Blogging&quot;","block_context":{"text":"Blogging","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/blogging\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2462,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/2462\/speaking-in-tongues-just-for-cheryl-johnson-building-content-rich-custom-web-sites-in-php\/","url_meta":{"origin":2438,"position":3},"title":"Speaking in tongues just for Cheryl Johnson: Building content-rich custom web sites in PHP","author":"Greg Swann","date":"January 2, 2008","format":false,"excerpt":"The deafening clamor in my mailbox suggests that almost nobody is interested in what I have to say about using PHP to automate weblog and web site content creation. That's actually a good sign, in the sense that automated web site creation is one of the key tools we use\u2026","rel":"","context":"In &quot;Marketing&quot;","block_context":{"text":"Marketing","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/marketing\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7038,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/7038\/podcast-wrapping-your-mind-around-dynamic-web-pages\/","url_meta":{"origin":2438,"position":4},"title":"Podcast: Wrapping your mind around dynamic web pages","author":"Greg Swann","date":"February 24, 2009","format":false,"excerpt":"This is the third and final installment from my conversation Saturday night with Scott Cowan. In the podcast linked here, Scott and I talk about using PHP to create dynamic web pages. Why would you want to do this? Mainly you wouldn't. But working with PHP and a data set,\u2026","rel":"","context":"In &quot;Marketing&quot;","block_context":{"text":"Marketing","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/marketing\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10139,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/10139\/real-estate-sales-transactions-in-phoenix\/","url_meta":{"origin":2438,"position":5},"title":"Real Estate Sales Transactions In Phoenix","author":"Ryan Hartman","date":"October 20, 2009","format":false,"excerpt":"I don't know if the local board in Phoenix allows agents to display recent sales transactions via idx feed, but it seems to me from talking to others around the land that most boards don't. Doesn't it kinda sting that Trulia can display this info, but Realtor folk can't? Or\u2026","rel":"","context":"In &quot;Supplanting the NAR&quot;","block_context":{"text":"Supplanting the NAR","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/supplanting-the-nar\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/posts\/2438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/comments?post=2438"}],"version-history":[{"count":0,"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/posts\/2438\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/media?parent=2438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/categories?post=2438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/tags?post=2438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}