-
some more info:
Code:
<?php include("page_name_here.php") ?>
includes page_name_here.php.. thats all
Code:
<?php require("page_name_here.php") ?>
will include page_name_here.php, but if the file dont exist the script will give and error and stop executing
Code:
<?php require_once("page_name_here.php");?>
same as require, but it makes sure the file will only be included once
^^
and Illegalx17,
They aint really like Iframes, if you include hello.php inside main.php
it will be like main.php and hello.php was 1 file.
if main.php is like this:
Code:
<html>
<body>
weeh!
<?php include("hello.php"); ?>
<body>
</html>
and hello.php was like:
the main.php will look like this:
Code:
<html>
<body>
weeh!
hello world!
<body>
</html>
:blink:
-
Includes has always been my best friend for... Anything.
I never used the require or require_once thingies...
-
Pin this now!!! I know this command is very unwidely used. Pin moderators!