grotehaas Posted September 11, 2007 Share Posted September 11, 2007 Hello, as a newbe I would like to run a script from a script that is already running. example: <?php code code if ( $user=$username & $pass=$password ) { next_script_to_run.php } ?> with kind regards grotehaas Quote Link to comment https://forums.phpfreaks.com/topic/68807-run-php-scrip-from-php-script/ Share on other sites More sharing options...
bonaparte Posted September 11, 2007 Share Posted September 11, 2007 It looks like you need include(). Use the include() function to include other PHP scripts within your current file. For example, include 'next_script_to_run)'; Also, the if statement appears to have a logical mistake. if ($user==$username & $pass==$password) Notice the == symbol. == is the or operator. You may also use if ($user==$username and $pass==$password) Quote Link to comment https://forums.phpfreaks.com/topic/68807-run-php-scrip-from-php-script/#findComment-345837 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.