sudo apt-get install brother-lpr-drivers-bh7
- Add printer with Gnome
- Go to cups:
http://localhost:631
- Tab "Printers"
- Select "MFC-5860CN"
- Select "Edit printer"
- Change settings:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$mysqli = new mysqli("localhost", "user", "password", "database"); | |
if (mysqli_connect_errno()) { | |
printf("Connect failed: %s\n", mysqli_connect_error()); | |
exit(); | |
} | |
printf ("System status: %s\n", $mysqli->stat()); |