Creating a seperate php file possible {SOLVED}


#1

I have alot of variables on a calculator that im creating I would like to put them on a seperate page to help clean up some of my code to make it easier on my eyes. Is this possible. I was looking around and saw this and was not sure if i could use it in this sense. If im right is there anything i need to add to either page to make it work. Thank in advance.

[php]
include(‘variable.php’);
[/php]


#2

Indeed you can use the INCLUDE statement.

The only thing you really need to do is make sure it’s formatted properly which basically means to write it like it were a stand alone php page (with the opening and closing php tags.)