rothana 03:22:11 | Dear all, I need some codes to print some part of a webpage. What can I do? I exclude everything on index page, just only the page with photos that we post. Please let me know how. Many thanks, Rothana |
jatin111 07-10-2014 | <?php function lpr($STR,$PRN) { $prn=(isset($PRN) && strlen($PRN))?"$PRN":C_DEFAULTPRN ; $CMDLINE="lpr -P $prn "; $pipe=popen("$CMDLINE" , 'w' ); if (!$pipe) {print "pipe failed."; return ""; } fputs($pipe,$STR); pclose($pipe); } // lpr() ?> |