bob2006 Posted September 2, 2006 Share Posted September 2, 2006 hello i need help with the include in my php script <?php SESSION_START(); header("Cache-control:private"); INCLUDE '/webmaster/functions.php'; if($_GET['act'] == "") { if($_SESSION['username'] && $_SESSION['password']) { i need the include to go to a differnt dic then i have the page the page is in one and the fuctions is in a different one who do i do this Quote Link to comment https://forums.phpfreaks.com/topic/19500-help-with-include/ Share on other sites More sharing options...
wildteen88 Posted September 2, 2006 Share Posted September 2, 2006 If its in a different directory then the scrpt being servered. Use this:INCLUDE '../webmaster/functions.php'; The .. tells to PHP to go one higher up the directory tree. Quote Link to comment https://forums.phpfreaks.com/topic/19500-help-with-include/#findComment-84775 Share on other sites More sharing options...
Barand Posted September 2, 2006 Share Posted September 2, 2006 Store the file to be included in a dir specified in the include_path in your ini file. Then all you need isinclude 'functions.php'; Quote Link to comment https://forums.phpfreaks.com/topic/19500-help-with-include/#findComment-84776 Share on other sites More sharing options...
bob2006 Posted September 2, 2006 Author Share Posted September 2, 2006 tahnk you Quote Link to comment https://forums.phpfreaks.com/topic/19500-help-with-include/#findComment-84800 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.