Created
July 11, 2017 19:35
-
-
Save jeffotoni/163233683b781a7fd36e26b45e372a32 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| /** | |
| ..######......#######.....##......##....######## | |
| .##....##....##.....##....##..##..##....##...... | |
| .##.................##....##..##..##....##...... | |
| ..######......#######.....##..##..##....######.. | |
| .......##...........##....##..##..##....##...... | |
| .##....##....##.....##....##..##..##....##...... | |
| ..######......#######......###..###.....##...... | |
| @autor: jeffotoni | |
| */ | |
| $zebra = 'Q879,024 | |
| q863 | |
| rN | |
| S3 | |
| D7 | |
| ZT | |
| JF | |
| O | |
| R32,0 | |
| f100 | |
| N | |
| B566,791,3,1,3,9,68,B,"000000123" | |
| B290,711,3,1,3,9,68,B,"1234" | |
| A714,705,3,4,1,1,N,"Teste de emitente" | |
| A432,855,3,4,2,1,N,"QUANTIDADE:" | |
| A447,661,3,4,1,1,N,"45" | |
| A432,462,3,4,2,1,N,"DATA:" | |
| A444,324,3,4,1,1,N,"12/05/2017" | |
| A234,850,3,4,2,1,N,"CODIGO" | |
| A245,579,3,4,2,1,N,"xxx8373" | |
| A700,854,3,4,2,1,N,"EMITENTE:" | |
| A520,854,3,4,2,1,N,"NUMERO ETIQUETA" | |
| A178,852,3,4,1,1,N,"Teste de descricao aqui" | |
| A122,854,3,4,2,1,N,"DESCRICAO ITEM" | |
| LO681,58,8,819 | |
| A29,617,3,4,2,1,N,"IDENTIFICACAO DE PRODUCAO" | |
| LO504,48,8,830 | |
| LO401,42,8,834 | |
| A69,849,3,4,1,1,N,"FABRICA" | |
| LO213,27,8,850 | |
| A20,849,3,4,2,1,N,"TESTE S3WF" | |
| LO102,21,7,853 | |
| LO404,484,100,8 | |
| P1'; | |
| $COMPARTILHAMENTO = "zebra"; | |
| $IP = "192.168.0.106"; ///forcado para teste | |
| @file_put_contents("/tmp/zebra-{$IP}.prn", $zebra. PHP_EOL ); | |
| $comando = 'echo -en "\r" | smbclient "//'.$IP.'/'.$COMPARTILHAMENTO.'" -c "print /tmp/zebra-'.$IP.'.prn" -N'; | |
| exec( $comando, $vetorErr ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment