View Single Post
Old 12-09-2022, 10:35 PM  
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,258
Before I spend an hour fucking around with this...

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.
__________________
Extreme Link List - v1.0
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote