Just a quick one, please.
HOw do i call another PHP script at the end of script? I want the first script to hand over the the second automatically passing one variable on.
Thank you
[SOLVED] call another script automatically
Moderator: General Moderators
just create a php-file that has include("script.php");
at the end of it, and it will be executed automatic.
Example;
page.php:
script.php:
when you include something, you put everything in the file you include in the place you include it....
at the end of it, and it will be executed automatic.
Example;
page.php:
Code: Select all
<?php
$var1 = "Something";
$somename = "Brian";
include(script.php");
?>Code: Select all
<?php
echo $var1
echo $name
?>