stargeek
PHP news website logo.
home    PHP scripts    articles    seo tools    links    search    contact    shop    realtors


Simple Solution for Php Includes - IFrames







Simple Solution for Php Includes -
IFrames

Simple Solution for Php Includes -
IFrames
07/08/2004 11:45 PM

WebDevInfo Jul 9 2004 3:49AM GMT




This is a GrokNews Entry: (what is grok?)





Similar Items

Simple Solution for Php Includes - IFrames

Grok Headline matches for Simple Solution for Php Includes - IFrames

Customer Relationship Management (Crm)
Solution Budgeting and Procurement Made
Simple by Online/Offline Solution
Configurator by MTCCRM.com for Microsoft
CRM Software


Customer Relationship Management (Crm)
Solution Budgeting and Procurement Made
Simple by Online/Offline Solution
Configurator by MTCCRM.com for Microsoft
CRM Software
06/22/2005 02:53 AM
Management Technology Consulting LLC adds to its leading online resource, e-store, and e-consultant site www.mtccrm.com, the Microsoft CRM Center, a downloadable solution configuration system that for the first time allows any business to quickly evaluate complete Microsoft CRM solution configurations with budgets including full implementation services. [PRWEB Jun 22, 2005]

Blogging and iFrames or Is This Content
Theft?


Blogging and iFrames or Is This Content
Theft?
02/07/2003 09:40 AM
Blogging and iFrames or Is This Content Theft? Well this is a new thing I haven't seen before -- using an iFrame to pull an entire entry into the display context of someone else's blog. And I don't mean that they are pulling the content out of the RSS so it at least looks right -- they are grabbing the content right from the permalink by sucking in the entire HTML, template, look and feel and all. It is very, very, odd. Example 1. Example 2. When I mentioned this to someone via IM, his comment was "Someone's a little obsessed with keeping people on his site" and I'd add "Or they think this will help their google ranking a lot". This feels like bad form to me and seems close to content theft in the same way that sites that once upon a time framed over existing content and showed their own banner ads where eventually thought to be content theft. Comments? Thoughts? Is this a good thing to do or just plain wrong?

The Version3 Simple Sign-On Solution
Helping Educators with Today’s Academic
Identity Management Challenges


The Version3 Simple Sign-On Solution
Helping Educators with Today’s Academic
Identity Management Challenges
06/23/2004 03:08 AM
National Educational Computing Conference, New Orleans, LA – June 23, 2004 - Version3, Inc., developers of the Version3 Simple Sign-On solution is launching one of the most comprehensive and cost-effective application access management solutions available to schools, this week, at the National Educational Computing Conference. The availability of this product will immediately leverage an already existing Windows infrastructure in schools for Identity and Application Access Management capabilities. [PRWEB Jun 23, 2004]

Centrafest group's globally known
Visiting Card Solution now available
with Document Managment Solution!!!


Centrafest group's globally known
Visiting Card Solution now available
with Document Managment Solution!!!
08/09/2004 02:05 AM
The ability to convert paper documents including your business cards into digital forms are increasingly important for business of mobile nature. Now you can scan your documents into your laptop to be sent over internet or to be recognized and saved. [PRWEB Aug 9, 2004]

New Gameboy includes Bluetooth


New Gameboy includes Bluetooth 05/11/2004 03:04 PM
PMN Publications May 11 2004 5:28PM GMT

Mac OS X Patch Includes IDN Browser Fix


Mac OS X Patch Includes IDN Browser Fix 03/22/2005 09:55 PM
Apple releases a security update to correct "highly critical" vulnerabilities in its flagship operating system, some affecting Web browsers.

One Way To Use Server Side Includes


One Way To Use Server Side Includes 10/26/2002 12:48 PM
Stickysauce Oct 26 2002 10:22AM ET

Using PHP Includes for MT Search Results


Using PHP Includes for MT Search Results 07/04/2004 03:28 PM

A lot of people want to roll their own search with Movable Type. Us, for instance — Gadgetopia has a two-tiered search system based on whether the search term appears in the title, keywords, or body of the entry (see this post for more information).

Our search is done in with SQL and PHP, abandoning the MT search system completely. The probem with this method is rendering the search results. If you don't use MT, then you lose two things:

(1) Auto-creation of the permalink. The URL isn't stored anywhere in the database, so you have to recreate it. If your URLs are just based on the entry ID, then it's not hard. However, look at our URLs — they're a conglomoration of the date and the entry title. We'd have to create a PHP function to recreate this scheme — and if we ever changed the URL structure from within MT, we'd have to change the PHP function separately.

(2) Text filters. If you're just converting line breaks, the text filter is not so hard to re-produce. However, if you're using Textile or some other plug-in to filter your text, you're going to have to reproduce that in PHP as well so the previews render correctly.

You can avoid all this, however, by simply using PHP includes and an extra Individual Entry Archive. The result is an elegant solution that blends PHP and MT to eliminate the tedium of recreating MT functionality in PHP.

To do this, create a new Individual Entry Archive in MT called "search_fragment." This template should contain the just HTML to present a single search result. Like this:


<tr class="title">
  <td class="title">
    <a href="<MTEntryPermalink>"><MTEntryTitle></a>
  </td>
  <td class="date">
    <MTEntryDate format="%m/%d/%Y">
  </td>
</tr>
<tr class="excerpt">
  <td colspan="2">
    <MTEntryExcerpt>
  </td>
</td>

Configure this template to generate a file in a "search_fragments" directory named for the entry ID only. You don't even have to add an extention, though you can if you like (if so, you'll need the change the PHP code listed below). So the entry in the archiving configuration would be something like:

search_fragments/<MTEntryID>

Now when an entry rebuilds, it will create two files: (1) its normal archive file, and (2) a search result fragment file called "1", "2", "348", etc. in the search_fragments directory. Notice that since we're using standard MT templates to create the fragment, the permalink will be created by MT, and the excerpt text will be formatted according to the text filter the entry is using.

Now, when you use your SQL to get your search results, just SELECT the entry ID, then spin through those and use PHP to include the matching search fragment file. Like this:


<table>
  <?php
    while ($r = mysql_fetch_assoc($keywordResults)) {
      @include "search_fragments/" . $r['entry_id'];
    }
  ?>
</table>

This will dump the contents of each search fragment file in the table. Since each file contained two rows, the resulting table will be valid HTML. Notice we're surpressing any errors on the inclusion line just in case a file is missing for some reason.

We've be using this system here for months, and it works great.

Click here to comment on this entry


SCO Includes OS Products In OpenServer 6


SCO Includes OS Products In OpenServer 6 06/24/2005 06:17 PM

My Canada includes AccordionGuy


My Canada includes AccordionGuy 05/26/2004 09:11 AM

Joey "AccordionGuy" DeVilla, a Filipino-born Canadian, has written a spirited editorial in response to a jackass racist blogger who asserts that the Canadians who died in the Boer War (!) and elsewhere certainly didn't intend for Toronto to be annexed by the "Third World," and says that the non-whites of Canada are less Canadian, with "no knowledge or affection for the old Canada, in either their hearts or minds."

Joey's response: "Fuck you, eh." And the banner, above. Link

warbl0ggers' world includes only
themselves


warbl0ggers' world includes only
themselves
12/02/2003 01:53 AM
Commonwealth of Blogosphere States .. way too much free time .. Weird Weblog Map .. Politburo's map .. seaside port .. inside jokes .. neighbors .. map

acepilots.com/images/comblog.html
track this site | 11 links


Red Hat Linux 7 includes MySQL


Red Hat Linux 7 includes MySQL 06/12/2002 06:22 AM
"MySQL is already the most used database in the Linux world, and we expect the Red Hat Linux 7 release to strengthen our position even more", says Michael "Monty" Widenius, CTO of MySQL AB.

Postcard from the Future (and It
Includes RSS)


Postcard from the Future (and It
Includes RSS)
06/30/2004 01:15 AM

A Brief Message about Why My TiVo and Treo, Rule 

"This is the confirmation email I received from TiVo after I:

  • Heard that Michael Moore was going to be on 60 Minutes
  • Was miles from home and wished I could somehow schedule my TiVo to record this show
  • Turned to my trusty Treo 600, and pointed the browser to Tivo Central Online to sign-in and schedule this recording
  • Return home to find 60 Minutes recorded perfectly per my request.

I know I live in the future a bit, being an early adopter and all, but the future is grand - and highly recommended." [shellen dot com, via buzz machine]

I'm going to start using that last line everywhere! I'll have to try to use my Treo 600 to access MyReplayTV to see if I can schedule a recording on one of my ReplayTVs!

Tangent: check out this great quote from Jeff Jarvis:

"Feeding me -- sending me any kind of content anytime anywhere on any device -- is the promise of this medium in an ever-connected world and RSS will be at the core of that. This is just the beginning."

Sounds familiar, doesn't it?  ;-)

Interestingly, I was interviewed by a reporter this morning for a Redeye article about RSS. Let's hope this is the first sign of a clue over at the Tribune Company!


The Gmail interface now includes a wee
newsreader


The Gmail interface now includes a wee
newsreader
04/16/2005 02:13 AM
evhead: Gmail adds feed reading

evhead.com/2005/04/gmail-adds-feed-reading.asp
track this site | 3 links


Back-To-School Now Includes Electronics
(AP)


Back-To-School Now Includes Electronics
(AP)
09/05/2004 04:32 PM
AP - For back-to-school shoppers, a new alphabet reigns, and it starts with E for electronics. With camera cell phones and the Apple iPod music player topping student wish lists, some of the hottest gadgets have little to do with pen or paper, much less studying.

graph-includes 0.1 (Default branch)


graph-includes 0.1 (Default branch) 03/28/2005 11:48 PM
Graph-includes creates a graph of dependencies between source files and/or groups of source files, with an emphasis on getting readable and usable graphs even for large projects. Usability of the dependency graphs are currently improved by customizable grouping of several source files into a single node, and transitive reduction of the graph.

Back-To-School Now Includes Electronics


Back-To-School Now Includes Electronics 09/05/2004 06:35 PM
AP via Los Angeles Times Sep 5 2004 11:05PM GMT

XP SP2 seminar includes disabling MSJVM


XP SP2 seminar includes disabling MSJVM 07/22/2004 04:37 PM
Following on that Microsoft XP SP2 partner seminar I just pointed to. One element of the two-day program is titled, "Disabling the MSJVM." As far as I know, the Microsoft Java Virtual Machine has never been a great source of...

Yahoo search includes RSS features


Yahoo search includes RSS features 02/18/2004 04:05 PM
Jenny Levine points out that the new Yahoo search shows RSS URLs where available and has links to add sites...

graph-includes 0.3 (Default branch)


graph-includes 0.3 (Default branch) 04/14/2005 07:39 PM
Graph-includes creates a graph of dependencies between source files and/or groups of source files, with an emphasis on getting readable and usable graphs even for large projects. Usability of the dependency graphs are currently improved by customizable grouping of several source files into a single node, and transitive reduction of the graph.
Changes:
A bug causing some dependencies to be ignored has been fixed. A command line option to produce printable graphs has been added, as well as more documentation.

graph-includes 0.2 (Default branch)


graph-includes 0.2 (Default branch) 03/31/2005 07:54 PM
Graph-includes creates a graph of dependencies between source files and/or groups of source files, with an emphasis on getting readable and usable graphs even for large projects. Usability of the dependency graphs are currently improved by customizable grouping of several source files into a single node, and transitive reduction of the graph.
Changes:
New features including stripping a common prefix from all filenames, the ability to specify excuses for abusive dependencies, and automatic generation of default level 2 groups in the default project class. Bugfixes for --output, --focus, and --showdropped, which were all completely broken in 0.1.

The Hard Stuff Now Includes Wine


The Hard Stuff Now Includes Wine 04/12/2005 08:31 PM
Among California producers and those who follow wine closely, high-alcohol wines have provoked sharp debate.

DCF probe includes look at Regier's
computer


DCF probe includes look at Regier's
computer
07/09/2004 05:10 PM
AP via Florida Times-Union Jul 9 2004 9:47PM GMT

Dangers of register_globals and remote
includes


Dangers of register_globals and remote
includes
07/10/2004 06:14 AM

A Microsoft Backup file that includes a


A Microsoft Backup file that includes a 09/23/2004 06:52 AM
TechTree Sep 23 2004 10:04AM GMT

graph-includes 0.4 (Default branch)


graph-includes 0.4 (Default branch) 04/17/2005 07:33 PM
Graph-includes creates a graph of dependencies between source files and/or groups of source files, with an emphasis on getting readable and usable graphs even for large projects. Usability of the dependency graphs are currently improved by customizable grouping of several source files into a single node, and transitive reduction of the graph.
Changes:
The processing of #include statements has been made similar to the standard C preprocessor behaviour.

CiSE Cluster Issue Includes Macs


CiSE Cluster Issue Includes Macs 04/01/2005 02:48 PM

Office 2004 CD includes REALbasic demo


Office 2004 CD includes REALbasic demo 05/18/2004 10:11 AM
A demo version of REALbasic 5.5, the cross-platform visual development environment from Real Software, is included on the new Microsoft Office 2004 CD...

Opera 8 Beta Includes Speech Commands


Opera 8 Beta Includes Speech Commands 12/24/2004 01:15 PM
Opera has certainly been in the news a lot lately. And why not, esspecially with their new Opera 8 Web browser currently being used in beta. With the final release of the Web browser scheduled for early 2005, the new browser is sure to wow folks with its inclusion of basic speach recognition skills….

Direct and Related Links for 'Opera 8 Beta Includes Speech Commands'


"Take a read if you're a PayPal user
(includes screenshot)"


"Take a read if you're a PayPal user
(includes screenshot)"
12/29/2003 09:13 PM

Take a read if you're a PayPal user
(includes screenshot)


Take a read if you're a PayPal user
(includes screenshot)
12/29/2003 07:18 AM
most recently a PayPal scam .. Boing Boing

boingboing.net/2003_12_01_archive.html#107265237062483354
track this site | 5 links


Oracle shopping list includes eight
other firms


Oracle shopping list includes eight
other firms
06/22/2004 07:12 PM
CNET Jun 22 2004 11:05PM GMT

Sonicwall diag tool includes VPN
credentlials


Sonicwall diag tool includes VPN
credentlials
07/31/2004 05:15 PM
Milton Lopez (Jul 30 2004)

Yahoo Toolbar Now Includes Antispyware
Option


Yahoo Toolbar Now Includes Antispyware
Option
08/08/2004 07:24 PM
BeSpacific Aug 8 2004 11:06PM GMT

Sun's Wall Street act includes
contrition


Sun's Wall Street act includes
contrition
09/22/2004 02:53 PM
Computer Business Review Sep 22 2004 6:32PM GMT

Improving Rankings via Server Side
Includes (SSI)


Improving Rankings via Server Side
Includes (SSI)
11/25/2002 07:04 PM
Stickysauce Nov 25 2002 5:40PM ET

Kon-Tiki Replica Includes Modern Gadgets


Kon-Tiki Replica Includes Modern Gadgets 09/06/2004 07:55 PM
AP via Daily Press Sep 7 2004 0:38AM GMT

Re: Sonicwall diag tool includes VPN
credentlials


Re: Sonicwall diag tool includes VPN
credentlials
08/02/2004 12:16 PM
neil gardner (Aug 01 2004)

Pope's influence includes technology
firsts


Pope's influence includes technology
firsts
04/02/2005 03:36 PM
Late pontiff embraced Internet as tool for communicating with the faithful.
Grok Description matches for Simple Solution for Php Includes - IFrames
GrokA matches for Simple Solution for Php Includes - IFrames

Simple Solution for Php Includes - IFrames

The following phrases have been identified by the grok system as matching this entry:

















Also check out:


Grok

Ipod Porn on the
Rise

Brief Abstract of
Wikipedia's
Mesothelioma Cancer
page

Get first aid
instructions in your
cell phone

IE is crap
JSPWiki gains
podcasting support

Email Marketing -
The End Is Nigh!

How To Stay One Step
Ahead of the Google
Dance

Setting Up Your
First Web Hosting
Account

what is the most
valuable weblog?

Bush Ties to Enron,
Big Business Back in
Spotlight (Reuters)

Adelphia Founder,
Son Guilty of
Conspiracy (AP)

Marion Jones's
Reputation Is Up in
the Air

Take New York's
Party Scene. Add the
Grand Old Party.
Stir.

Defectors' Reports
on Iraq Arms Were
Embellished, Exile
Asserts

Kerry Camp Sees
Edwards Helping With
Rural Vote

Bin Laden Is Said to
Be Organizing for a
U.S. Attack

regexxer 0.8
Intel Software RAID
driver

MyAIM
Extensible Java MUD
Let 3G battle
commence

Sports Critical for
3G Success

Europe plans lab
beneath the Alps

Prince criticised
over therapies

Chavez defiant over
crunch vote

Tennis: Rusedski
defeats Dane

Captors seize
Bulgarian hostages

Count jellyfish,
Britons urged

Church mulls easing
wedding rules

Nextel Must Pay at
Least $3.2
Billion for Airwaves
(washingtonpost.com)

Apple Sends iPod
Mini Worldwide

Newspaper's Election
Blog-by-Readers
Experiment

Hardware Makers
Ready Drivers for
64-Bit Linux,
Windows

A fun (yet
testosterone filled)
evening

Are You Compliant
with California's
New Online Marketing
Law? 2 Tips, 3 Grey
Areas, & a Useful
Link

INSIGHT: A coat,
high-tech analysis
led police to
suspected culprit

Dell distances
itself from Linux
claims

BenQ DJ Station hits
SA shores

Seriously ill find
creative solace on
the internet

Gigabyte launches
entry-level RZ
motherboards in SA

Excise duty
exemption for IT
products to make PCs
cheaper

High-tech gains a
state priority

Microsoft's Encarta
adds search bar

War In The Pacific
ShipsGary Grigsby
brings the joys of
tabletop gaming to
the PC with War In
The Pacific

New outlet for Wi-Fi
Internet

Computer Associates
Lowers Sales Outlook

Asian stocks fall on
Yahoo earnings
report

LG.Philips LCD
Profit Soars, But
Outlook Murky

transparent public
loo

Save The Children
calls on release of
Iraqi children from
jails.

Porn is just a means
of reaching our
goals.

Online chat, games
worry on-the-road
girlfriend

China slaps ratings
on online games

Rally 'round the
Xbox

Newspaper discovers
moderately happy
Wi-Fi user

what is grok?