Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Include lines of text using SSI or something else
Old 03-29-2007, 01:40 PM Include lines of text using SSI or something else
Junior Talker

Posts: 2
Trades: 0
I'm looking for a simple way to include certain lines of one file in another without including all of them. I'm basically using this for a schedule where I need to display a simple version on one page and a more detailed version on the other.

Right now I create each page separately, and I would like to be able to just create one page with more information and have the simpler page pull only the specific parts of the complex page that I need

I know I could use some sort of scheduling package, but we just post one week at a time, and I'd rather keep it simple. I would prefer to use SSI if it has this capability, but I could do PHP, JavaScript or something else entirely if need be. An example of what I'm trying to do is below.

The full version would include the following information:

Monday, March 26, 2007

Full Committee
Hearing on "How Effective are Existing Programs in Helping Workers Impacted by International Trade?" scheduled at 1:00 p.m. in room 2175 Rayburn H.O.B.

Archived Webcast ››
Witnesses
David Lee Bevard
Galesburg, IL
Stan Dorn
Senior Research Associate
Urban Institute
Washington, D.C.
Bruce G. Herman
Executive Director
National Employment Law Project
New York, NY
Lael Brainard, Ph.D.
Vice President and Director, Bernard L. Schwartz Chair in International Economics
Brookings Global Economy and Development Program
Washington, D.C.
Tim Alford
Director
Office of Workforce Development
Montgomery, AL
Thea Lee
Policy Director
AFL-CIO
Washington, D.C.
Tuesday, March 27, 2007
Subcommittee on Workforce Protections
Hearing on "Providing Fairness to Workers Who Have Been Misclassified as Independent Contractors," scheduled at 10:30 a.m. in room 2175 Rayburn H.O.B.

Archived Webcast ››
Witnesses Catherine Ruckelshaus
New York, NY
Cliff Horn
A. Horn, Inc.
Barrington, IL
President John J. Flynn
International Union of Bricklayers and Allied Craftworkers
Washington, DC
Richard R. Shavell
Shavell & Company, P.A.
Boca Raton, FL
The short version would include:

Monday, March 26, 2007

Full Committee
Hearing on "How Effective are Existing Programs in Helping Workers Impacted by International Trade?" scheduled at 1:00 p.m. in room 2175 Rayburn H.O.B.
Archived Webcast ››

Tuesday, March 27, 2007
Subcommittee on Workforce Protections
Hearing on "Providing Fairness to Workers Who Have Been Misclassified as Independent Contractors," scheduled at 10:30 a.m. in room 2175 Rayburn H.O.B.
Archived Webcast ››

Any help would be much appreciated.

Will
willjohnston is offline
Reply With Quote
View Public Profile Visit willjohnston's homepage!
 
 
Register now for full access!
Old 03-30-2007, 04:37 AM Re: Include lines of text using SSI or something else
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
not with SSI, it's either all the file or none of the file

If the file has exactly the same structure for each section you could extract lines between certain parts using a regular expression and PHP.

however; This kind of scenario is exactly what XML is designed to do, if you can create a XML formatted document you could use PHP, javascript (AJAX) or XLST to show the data in whatever form you prefered.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-05-2007, 07:40 AM Re: Include lines of text using SSI or something else
Novice Talker

Posts: 5
Trades: 0
you can use a php ssi file. example:

<?php require_once('include1.php'); ?>
__________________
Free HTML, Dreamweaver, & FrontPage Video Tutorials
Please login or register to view this content. Registration is FREE

FREE WEBSITE TRAFFIC
Please login or register to view this content. Registration is FREE
jesse1 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Include lines of text using SSI or something else
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.50857 seconds with 12 queries