I wrote a simple image gallery script, that you just put the file in the image dir, then include it in any page, my problem is that I want to include the same file from 2 different dirs. Some of the varibles are running over. IS their a way to clear the varibles from the first include, before the 2nd is included. here is the error i am getting.
Fatal error: Cannot redeclare ftype() (previously declared in /home/harbour-/public_html/images/photos/index.php:6) in /home/harbour-/public_html/images/desktops/index.php on line 6
Here is how my includes go.
<div align="center">
<table cellpadding=0 cellspacing=0 width="90%">
<tr>
<td><h1>Pictures</h1></td>
</tr>
<tr>
<td>
<?PHP
include ('images/photos/index.php');
?>
</td>
</tr>
<tr>
<td><h1>Desktop Wallpapers</h1><p>"view file" of the desktop you want, then once the image opens right click on it and select "Set As Background."</td>
</tr>
<tr>
<td>
<?PHP
include ('images/desktops/index.php');
?>
</td>
</tr>
</table>
</div>
Thanks in advanced, please if you can help make it quick, I have a deadline today for this site.