malikah Posted November 18, 2007 Share Posted November 18, 2007 Hi, I'm trying to use the $link to include a file from the parent directory but with no success: $link = include('/home/folder/loginInfo.php'); and the contents of loginInfo.php are: @mysqli_connect("localhost", "username", "password", "database"); How should I re-arrange this to work? Cheers. Link to comment https://forums.phpfreaks.com/topic/77830-solved-using-link-and-include/ Share on other sites More sharing options...
wildteen88 Posted November 18, 2007 Share Posted November 18, 2007 Using $link inside loginInfo.php: include('/home/folder/loginInfo.php'); $link = @mysqli_connect("localhost", "username", "password", "database"); Link to comment https://forums.phpfreaks.com/topic/77830-solved-using-link-and-include/#findComment-393934 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.