Skip to Content
Essential Blogging
book

Essential Blogging

by Cory Doctorow, Rael Dornfest, Scott Johnson, Shelley Powers, Benjamin Trott, Mena G. Trott
August 2002
Beginner
260 pages
6h 56m
English
O'Reilly Media, Inc.
Content preview from Essential Blogging

Integrating Blogger into an External Application Environment

By default, Blogger generates the main blog page and supporting archives as HTML extensions, but this is easy to change if you want to include ASP or PHP, or any other type of server-side script. For instance, as mentioned earlier, we use a comment system called dotcomments that’s based on PHP. We’ve also added a PHP date and time function, showing our current date and time (handy when you have blog readers from around the world). To support this functionality, we need to save our files as PHP-based files.

To change the blog to generate files with a .php extension, access the Settings view and the Publishing tab. In the page, you’ll want to change the blog filename to index.php instead of index.htm or index.html, whichever you already have. Save this change. If the archives also need the extension changed, access the Archive view next. Again, change the archive filename to a .php extension. The same extension will be used for all archive files. (Though the Archive index file won’t usually need to have the extension change — it won’t have server-side script — the filename is used as the basis for all other archive files, which is why you’ll need to make the extension name change.)

Republish the archives and the main blog page. The files are now saved as PHP files rather than HTML. At this point, you can open the blog template and add your server-side script as you would a regular file.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Create Your Own Blog: 6 Easy Projects to Start Blogging Like a Pro, Second Edition

Create Your Own Blog: 6 Easy Projects to Start Blogging Like a Pro, Second Edition

Tris Hussey
The Elements of Blogging

The Elements of Blogging

Mark Leccese, Jerry Lanson

Publisher Resources

ISBN: 0596003889Catalog PageErrata