Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Jefferis NoSpamme #1
Php includes? An html file?
Hi all,
I'm working on table that has to be updated quarterly by a client using
either Contribute or DW. The table rotates each week and I have them
included right now in a page using php.inc
The problem is the client can't be trusted to edit an inc, so I have used an
html template with the table for manual editing [ I haven't used the DW
template lock, just sent a DW page].
My question, is there a way to include the html page within a page in php
without duplicating the html/header/body tags??
Just for clarification, the php.html page right now is structured as
follows:
html
Header
Body
Location specific content
Table // variable content from a called php.inc
/Body
/Header
/html
Thanks
Jeff
~~~~~~~~~~~~
Jefferis Peterson, Pres.
Web Design and Marketing
[url]http://www.PetersonSales.com[/url]
Jefferis NoSpamme Guest
-
Problems with HTML includes
Hi There, I have a really annoying problem which I'm sure there is a simple solution to but my mind has gone blank. Basically I have a website... -
application object vs includes file
Is it better to : - use an application object to store my database connection string or - use an include file on each asp page that needs to... -
textArea's and external html files> linking in the html to a new file
Is it possible to have a link like an <a href... in a html file loaded into a textArea which then if clicked loads a new html into the same... -
Problem occurs when included file includes anther file.
The directory structure is as follows: / |-- demo.php |-- inc/ |-- inc1.php |-- inc2.php === file demo.php == <?php require 'inc/inc1.php'; -
[PHP] Problem occurs when included file includes anther file.
Thank you for your reply first. Yes I know I could set include_path either in the php.ini or at runtime.But it's a little bit dirty I think.What... -
boy mackman #2
Re: Php includes? An html file?
well you could just make the page you send to your client not include the tags
and that it only includes the table code?
Otherwise you could make it into a database - which is probably the better
solution as then there is little way that the code will change.
Hope this helps
boy mackman Guest
-
Jefferis NoSpamme #3
Re: Php includes? An html file?
Thanks, I didn't think the table would display without the tags, but it
appears that it does.
Jeff
On 12/22/05 5:48 AM, in article doe096$5ck$1@forums.macromedia.com, "boy
mackman" <webforumsuser@macromedia.com> wrote:
~~~~~~~~~~~~> well you could just make the page you send to your client not include the tags
> and that it only includes the table code?
>
> Otherwise you could make it into a database - which is probably the better
> solution as then there is little way that the code will change.
>
> Hope this helps
>
Jefferis Peterson, Pres.
Web Design and Marketing
[url]http://www.PetersonSales.com[/url]
Jefferis NoSpamme Guest



Reply With Quote

