Inviare documenti direttamente alla stampante senza il dialog di stampa con php
Per applicazioni web intranet / locali potrebbe essere utile eliminare la conferma della stampa (dialog). Per fare ciò occorre abilitare php_printer.dll nelle ext.
avariato nasce vario, cresce e varia, e muore avariato. Soluzioni a problemi, nuovi spunti, news dal mondo informatico, ed attività varie ed eventuali.
Arraya
([0] => Array)
(
[primo] => 1
[secondo] => 2
[terzo] => 3
[quarto] => 4
)
[1] => Array
(
[primo] => 5
[secondo] => 6
[terzo] => 7
[quarto] => 8
)
[2] => Array
(
[primo] => 9
[secondo] => 10
[terzo] => 11
[quarto] => 12
)
ArrayTutto questo grazie alla seguente funzione:
([primo] => Array)
(
[0] => 1
[1] => 5
[2] => 9
)
[secondo] => Array
(
[0] => 2
[1] => 6
[2] => 10
)
[terzo] => Array
(
[0] => 3
[1] => 7
[2] => 11
)
[quarto] => Array
(
[0] => 4
[1] => 8
[2] => 12
)
"C:\Program Files\Microsoft Office\Office12\WINWORD.EXE" %1 /q /n /mFilePrintDefault /mFileExit
<?php
; Maximum allowed size for uploaded files.
upload_max_filesize = 8M

InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
090218 21:47:15 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
090218 21:47:15 InnoDB: Started; log sequence number 0 46409
090218 21:47:15 [Note] Event Scheduler: Loaded 0 events
090218 21:47:15 [Note] C:\PROGRA~1\EASYPH~1.0\MySql\bin\mysqld.exe: ready for connections.
Version: '5.1.30-community' socket: '' port: 3306 MySQL Community Server (GPL)
090218 21:47:28 [Note] C:\PROGRA~1\EASYPH~1.0\MySql\bin\mysqld.exe: Shutdown normale
tasto destro sull'icona di EasyPHP e Esegui come amministratore.Happy PHP
mail($destinatario, $oggetto, stripslashes($messaggio), "From: ".stripslashes($mittente)."\r\nX-Mailer: DT_formmail\r\nContent-type: text/html; charset=iso-8859-1\r\nMIME-Version: 1.0\r\nContent-Transfer-Encoding: quoted-printable\r\nBcc:pippo@pippo.it\r\n");Il Ccn serve per nascondere uno o più destinatari di una mail.
$result = mysql_query ("happy php!
SELECT users.user, (users.administrator = 1) as administrator
FROM users
WHERE users.user = '".$userName."'
") OR die ("Errore
query CHECK ADMINISTRATOR USER
Dettagli:".mysql_error());
$admin = false;
if(mysql_num_rows($result) > 0)
{
while($row = mysql_fetch_assoc($result))
{
if($row["administrator"] == "1")
$admin = true;
}
}
mysql_free_result($result);
echo utf8_encode("Lunedì - àèìòù");
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>titolo</title>
<style type="text/css">
body{font-family:Verdana; font-size:10px;}
</style>
</head>
<body>
<?php
echo "NO UNICODE: Lunedì - àèìòù";
echo "<br />";
echo utf8_encode("SI UNICODE: Lunedì - àèìòù");
?>
</body>
</html>highlight_string