Simple question?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I would like to include HTML code generated through a PHP script. The
reason why I try to do this is because the HTML file depends on a model
that I keep updating (using GoLive).

I tried to use the following piece of code:
<p>The database contains <object type="text/html"
data="determinesize.php"></object> objects.</p>

Where am I wrong?

Thank you!

Re: Simple question?


<p>The database contains
<?php include("determinesize.php"); ?>


Re: Simple question?

It does not seem to be working (?)

Re: Simple question?

What's not working? include() is for including files, such as PHP
files. Although a little needless overhead exists when include()ing
plain text (like HTML) it still will work fine. Then again, "not work"
isn't an official PHP error or easy to decipher so we have no idea what
your problem is  ;-)

Anyway, read for details on using include (or
simply use readfile() to output the HTML files).

And realize that this must be parsed so I'm not sure how golive works
or is setup but somehow PHP needs to be initiated, like through the web

Site Timeline