Jump to content

[SOLVED] Using $link and include()


malikah

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.