Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $filename = '/home/username/private/mysqlinfo';
- $fp = fopen("$filename", 'r');
- if (!$file) {
- echo "<p>Unable to open remote file.\n";
- exit;
- }
- $contents = fread($fp, filesize($filename));
- $contents = chop($contents);
- fclose($fp); $array = explode(":", $contents);
- $dbusername = $array[0];
- $dbpassword = $array[1];
Add Comment
Please, Sign In to add comment