If i want to include a selection of arrays in an external file i just do this right?
array.php
Quote:
$array1 = $row['1'];
$array2 = $row['2'];
$array3 = $row['3'];
$array4 = $row['4'];
|
Then just call it at the top of the page using an include like this:
Quote:
|
<?php include '../dir/to/array.php';?>
|
Or is there more to it than that?
Any easier ways to achieve what I want? I'm basically trying to (kind of) have a 'settings' file with site name, keywords and other random shit that I can just edit and upload once and forget about.