If you are using .htaccess Apache Auth and you need to get the name of the logged in user:
echo $_SERVER["REMOTE_USER"];
Technology solutions for Systems Engineers and Admins. Linux, Windows, scripts, and code.
Thursday, March 26, 2009
Monday, March 16, 2009
PHP: Echo all $_POST data
foreach($_POST as $var => $value)
{
echo $var . ' : ' . $value . "<br>";
}
Labels:
PHP
Tuesday, March 3, 2009
Zebra label printer is printing off center
If your Zebra label printer is printing off center, first make sure you use the Universal drivers from zebra.com. Go to the advanced tab in the printer properties, open printing defaults, expand paper/output, click the line with the paper size and a customize button will appear. Set your left margin offset in the box on the bottom right.
Labels:
Zebra
Subscribe to:
Posts (Atom)