Thursday, March 26, 2009

PHP: Getting the username logged in with .htaccess

If you are using .htaccess Apache Auth and you need to get the name of the logged in user:

echo $_SERVER["REMOTE_USER"];

Monday, March 16, 2009

PHP: Echo all $_POST data

foreach($_POST as $var => $value)
{
echo $var . ' : ' . $value . "<br>";
}

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.