Bit of a problem here, I have a file with the following code:
<?php
$kvkvariable = 000050650459;
include("../../../../../../httpdocs/profiel/indextemplate.php");
?>
Inside the included PHP file, I need $kvkvariable. However, when I echo this variable it's not showing the number I want it to show?
If I place the defining code of the $kvkvariable inside indextemplate.php it works fine. I thought including was the same as pasting the code in the same file? How do I fix this?
Thanks!
EDIT:
indextemplate.php immediatly starts with this:
<?php
echo "Dit is kvk: ".$kvkvariable."";
It gives the following result:
Dit is kvk: 1337893
To be honest with you, I have no idea where he gets that number!?
indextemplate.php? You're quite right about how includes work, so it might be an issue of scope.