WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : write an event to the eventlog via JScript
Categories : Java Script, Windows 2000
Boaz Yahav
Date : Jan 03rd 2001
Grade : 3 of 5 (graded 2 times)
Viewed : 8765
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Boaz Yahav
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

I found this script very useful. You can use it to write messages to the event tog. I tested it
on win2K soI'm not sure how it runs on other systems. The source for this file is MS.


// NOTIFY.JS
// Description:
// Notify.js can be customized by the user
// Right now it reports a missing hotfix on commandline and writes an event to the eventlog
// But it is also possible to generate a mail, halt IIS or generate other events that are
// relevant to administrators.


function Notify(type,sBulletin, sTitle, sLink, sMachine)
{
        var oShell = new ActiveXObject("WScript.Shell");
        switch(type)
        {
                // consts (for instance HOTFIX) are declared in HFCHECK.WSF
                case HOTFIX:
                        WScript.Echo("\nMissing Hotfix on Machine " + sMachine + "
Detected:\nMicrosoft Security Bulletin (" + sBulletin + ")\n" + sTitle + "\nLink:
http://www.microsoft.com" + sLink);                                
                        oShell.LogEvent(2,"Missing Hotfix on Machine " + sMachine + "
Detected:\nMicrosoft Security Bulletin (" + sBulletin + ")\n" + sTitle + "\nLink:
http://www.microsoft.com" + sLink);
                        break;
                case WORKAROUND:
                        WScript.Echo("\nWorkaround Notification for Machine " +
sMachine + ":\nMicrosoft Security Bulletin (" + sBulletin + " )\n" + sTitle + "\nLink:
http://www.microsoft.com" + sLink);
                        oShell.LogEvent(2,"Workaround Notification for Machine " +
sMachine + ":\nMicrosoft Security Bulletin (" + sBulletin + " )\n" + sTitle + "\nLink:
http://www.microsoft.com" + sLink);
                        break;
                case MISSINGINFO:
                        WScript.Echo("\nHotfix Warning for Machine " + sMachine
+ ":\nUnable to verify hotfix install \nMicrosoft Security Bulletin (" + sBulletin + ")\nLink:
http://www.microsoft.com" + sLink);
                        oShell.LogEvent(2,"Hotfix Warning for Machine " + sMachine
+ ":\nUnable to verify hotfix install \nMicrosoft Security Bulletin (" + sBulletin + ")\nLink:
http://www.microsoft.com" + sLink);
                        break;
        }
}



PHP Array to Javascript Object
Categories : PHP, Arrays, Java Script
OverEasy - PHP generated JavaScript to do mouseovers on your pages. Modify one file and one function does it all for you!
Categories : PHP, Java Script, HTML and PHP, MySQL
This is a script that list all image files on a given directory, and displays the thumbnails nicely formated within an HTML table. It also make use of JavScript to open pop up windows when the users want to see the full photo.
Categories : Graphics, PHP, Complete Programs, Java Script
How to display a PHP variable value from a selectbox without reloading the page by merging PHP and Javascript variables.
Categories : PHP, Java Script, Variables
Remote Scripting: send form POST data to a script and insert the results into a page without refreshing the page.
Categories : PHP, AJAX, HTML and PHP, Java Script
JavaScript dropdown list menu to switch any page.
Categories : Java Script, Beginner Guides, Form Processing
complete simply working javascript password generator file. Use letter, vowels, consonants (uppercase and lowercase) arrays to create a really random and secure password. improved security using time functions to initialize random number generator.
Categories : Java Script, HTML, Security, Authentication, Strings
JavaScript Fade In Text Messages
Categories : Java Script, DHTML
How to create <SELECT> menues that change on the fly according to other <SELECT> menues on the page?
Categories : Java Script, HTML
Linked comboboxes with php-mysql & javascript
Categories : PHP, Java Script, Databases, MySQL
Flash Your Message at Status Bar
Categories : Java Script, Browsers
Local Time clock and Server time usign PHP and JavaScript
Categories : PHP, Java Script, Date Time, Beginner Guides
Popup window creator for images on the Fly.
Categories : PHP, GD image library, Java Script
javascript doesn't accept a fieldname with []
Categories : Java Script
JAVASCRIPT interface class to the eBusiness Charts generatation remote service.
Categories : Java Script, Graphics, Charts and Graphs