I wanted to use PHP do do a little thing, but I needed to know how to get a variable from an external document (say external.php) and use it in a function in a PHP document (internal.php).
I was thinking maybe something like this:
Code for external.php
$variable = "true";
Code for internal.php
if ($GETFROM{'/external.php'}['variable'])
echo "It worked";
Is there any possible way to do something like this?
If you want to include a specific value from an include file directly into a variable in your current document, you can also include a PHP file which returns the value.
For example:
inc.php
index.php