Page 1 of 1

Including other PHP files in PHP script

Posted: Sat Jul 10, 2004 1:07 am
by fresh
Hey,

looking for a confirmation. I would like to break down my login page, via include, so would it work like this:

Before:

Code: Select all

<?php
phpcodephpcode { //1st.php
phpcodephpcode
phpcodephpcode
}
phpcodephpcode{ //2nd.php
phpcodephpcode
phpcodephpcode
}
?>
After:

Code: Select all

<?php
include("1st.php");

include("2nd.php");
?>

just don't want to go threw what I did last night... :) I changed a few things and the whole thing went nuts... lol

thanks in advance

Posted: Sat Jul 10, 2004 2:05 am
by kettle_drum
Yep that will work fine...just copy..paste..and save!

great

Posted: Sat Jul 10, 2004 2:27 am
by fresh
thanks ;)