It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

<!--#!include???

<!--#!include???

Postby wickss on Fri Jun 30, 2006 5:03 pm

I am trying to pull up another html document within a table cell. I have a reference book that says to use the <!--#include...> tage for html docs and <!--#exec...> for cgi scripts. All other references indicated that this is strictly a comment tag. The browsers always seem to ignore this tag. How can I pull up information from a perl script or other html document to my page?
wickss
 
Posts: 7
Joined: Fri Jun 30, 2006 4:48 pm

Postby C@L on Fri Jun 30, 2006 8:27 pm

Well thats not how to do it

for html i would recommend iframes

Code: Select all
<iframe src="iframe.html">if you can read this your browser does not support iframes</iframe>


however the best way would be php

if you know php and your server allows it then....

Code: Select all
<?
include ("yourfile.html");
?>



hope that helps :)


C@L
Image
User avatar
C@L
250+ Club
 
Posts: 445
Joined: Fri May 13, 2005 6:36 pm
Location: Lpool, England

Postby grommit on Sat Jul 01, 2006 10:18 am

Yep the PHP-way is much better.
But remember that the HTML-file you include will act lik its in the calling file.
So if you include a file like page\blabla.html and you have images in the paths to this images wont work anymore because blabla.html isn't in the page directory it will act like its in the calling file directory.
Hope you get my crappy explanation. :?
grommit
 
Posts: 28
Joined: Thu Jun 29, 2006 11:29 am
Location: Netherlands

Postby wickss on Wed Jul 05, 2006 7:00 pm

Thanks. This was helpful. Especially about the <iframe> tag. I don't know php yet but I'll probably learn it after I get finished with Perl.

I figured out the reason the Include tag didn't work. My server doesn't support Server Side Includes.
wickss
 
Posts: 7
Joined: Fri Jun 30, 2006 4:48 pm

Postby joshcxa on Wed Jul 12, 2006 7:57 am

you don't need to know much php to use php includes. just remember that your document extension ends in .php instead of .htm
joshcxa
DEVPPL Lightwave Moderator
User avatar
joshcxa
100+ Club
 
Posts: 156
Joined: Wed Aug 18, 2004 10:59 am
Location: Australia


Who is online

Users browsing this forum: No registered users and 8 guests