function.php라는 외부 파일에 내 웹 사이트에 init이라는 함수가 있습니다. index.php를로드 페이지와 통화 기능 초기화 :PHP 모든 함수 변수 전역
function init(){
error_reporting(0);
$time_start = microtime(true);
$con = mysql_connect("localhost","user123","password123");
mysql_select_db("db123");
}
어떻게 어쩌면 당신은에서 이러한 변수를 반환 할 수 있습니다
global $time_start;
global $con;
고마워요! 아무도 더 나은 대답을 게시 할 수 없다면 동의하십시오. – nebkat