hola te dejo un ejemplo como te indico
abimaelrc
links.php
Código PHP:
<?php
$link1="foto1.html";
$link2="foto2.html";
$link3="foto3.html";
$link4="foto4.html";
$link5="foto5.html";
?>
y luego
tupagina.php
Código PHP:
<?php
require_once(dirname(__FILE__) . "/links.php");
?>
<?php
echo '<a href="'.$link1.'">link1</a>';
?>