main.php => include("". rand(1,3) .".php");
I need to include same result in main.php in a second page main_final.php.
How can i do for main_final to include same result that main.php?
thank you very much !
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You may use variables to do that. Store you result in the proper predefined variable:
http://php.net/manual/en/reserved.variables.php
And read the value from both files. For example in
main.php:In the second file: