Archive for the ‘Windows’ Category

PHP script to download .ics Outlook Event Schedule Calendar Alarm add

Thursday, July 28th, 2011

My boss wanted the ability to put a button on an event on our site that would book it in the user’s Outlook calendar.  Short story is the link downloads an .ics file to their computer, opened with Outlook it schedules the Event, Reminder, Priority, Schedule, and so on.  Thank you http://www.myhow2guru.com

<?php
//This is the most important coding.
header(“Content-Type: text/Calendar”);
header(“Content-Disposition: inline; filename=filename.ics”);
echo “BEGIN:VCALENDAR\n”;
echo “PRODID:-//Microsoft Corporation//Outlook 12.0 MIMEDIR//EN\n”;
echo “VERSION:2.0\n”;
echo “METHOD:PUBLISH\n”;
echo “X-MS-OLK-FORCEINSPECTOROPEN:TRUE\n”;
echo “BEGIN:VEVENT\n”;
echo “CLASS:PUBLIC\n”;
echo “CREATED:20091109T101015Z\n”;
echo “DESCRIPTION:How 2 Guru Event\\n\\n\\nEvent Page\\n\\nhttp://www.myhow2guru.com\n”;
echo “DTEND:20091208T040000Z\n”;
echo “DTSTAMP:20091109T093305Z\n”;
echo “DTSTART:20091208T003000Z\n”;
echo “LAST-MODIFIED:20091109T101015Z\n”;
echo “LOCATION:Anywhere have internet\n”;
echo “PRIORITY:5\n”;
echo “SEQUENCE:0\n”;
echo “SUMMARY;LANGUAGE=en-us:How2Guru Event\n”;
echo “TRANSP:OPAQUE\n”;
echo “UID:040000008200E00074C5B7101A82E008000000008062306C6261CA01000000000000000\n”;
echo “X-MICROSOFT-CDO-BUSYSTATUS:BUSY\n”;
echo “X-MICROSOFT-CDO-IMPORTANCE:1\n”;
echo “X-MICROSOFT-DISALLOW-COUNTER:FALSE\n”;
echo “X-MS-OLK-ALLOWEXTERNCHECK:TRUE\n”;
echo “X-MS-OLK-AUTOFILLLOCATION:FALSE\n”;
echo “X-MS-OLK-CONFTYPE:0\n”;
//Here is to set the reminder for the event.
echo “BEGIN:VALARM\n”;
echo “TRIGGER:-PT1440M\n”;
echo “ACTION:DISPLAY\n”;
echo “DESCRIPTION:Reminder\n”;
echo “END:VALARM\n”;
echo “END:VEVENT\n”;
echo “END:VCALENDAR\n”;
? >

Runas administrator

Wednesday, March 17th, 2010

If runas isn’t in the menu when you right click on a file, add the runas option to that file type in the registry, here’s how:

http://www.howtogeek.com/howto/windows-vista/add-run-as-administrator-to-any-file-type-in-windows-vista/

otherwise:

can you run any other program that can edit that file with runas?

example, I wanted to edit C:\xampp\phpMyAdmin\config.inc.php as admin,

first run dreamweaver as admin and it will also be able to save as admin!

Boot Startup Applications MSCONFIG

Monday, March 8th, 2010

Run

MSCONFIG

Location of Windows Hosts Host file

Wednesday, March 3rd, 2010

C:\WINDOWS\system32\drivers\etc\hosts

forward browser requests for www.google.com
instead to IP 192.162.1.1
example:

192.162.1.1 www.google.com