By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,776 Members | 1,233 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,776 IT Pros & Developers. It's quick & easy.

Simple question?

P: n/a
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!

Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Try

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

-aaron

Jul 17 '05 #2

P: n/a
It does not seem to be working (?)

Jul 17 '05 #3

P: n/a
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 http://php.net/include 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
server.

Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.