Hi all - I am a novice when it comes to PHP, but I have managed to use it successfully many times. I have an issue where I can not get a variable to echo when I am calling it from within a file that is using SSI. Here is a basic example that should explain it better.
In the /index.php file:
<?php
$photo1="photo1.jpg";
$photo2="photo2.jpg";
?>
<?php include('http://www.DOMAIN.com/includes/header.php'); ?>
In the /header.php file:
<img src="http://www.DOMAIN.com/photos/<?php echo $photo1; ?>">
When I try to echo $photo1 from within the /header.php file it simply does nothing, even though the variable is declared before the call for the include file.
If I try to do the echo with the IMG tag from within the /index.php file, it works no problem -but that wont work without a MAJOR site redesign with how things are configured.
Question is, why does this not work, and how can I fix it?
Huge thanks from this Newb!