Re: text grabber
| From: | hugh danaher | Date: | Fri, 15 Feb 2002 08:18:08 +0000 |
| Subject: | Re: text grabber | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-84871@lists.php.net to get a copy of this message | ||
you can try something like:
<?php include("file_with_just_the_table_and_html_tags.txt"); ?>
put your table in the above file (of course with a different name!) then
call it when ever you need to. Other's will disagree but you also need to
give the destination file a .php extension.
Hugh
----- Original Message -----
From: "Jason Whitaker" <jwhitaker@gmx.net>
To: <php-general@lists.php.net>
Sent: Thursday, February 14, 2002 11:32 PM
Subject: [PHP] text grabber
> How do i pull text from one file and have it print to another?
>
> example:
>
> I have a site where i use a table alot on alot of different pages but i
dont
> want to type out the table each time but rather use php to grab the table
> from file-1.txt and print it on file-2.php?
>
>
> --
>
> Jason Whitaker
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>