Solved

Run Web Script from Windows XP Command Line

Posted on 2006-07-19
6
938 Views
Last Modified: 2008-01-09
Is there a way to invoke a script on a web server from the Windows "command line"?

Like I want to run a php script at http://www.somewhere.com/xyz/abc.php

Can I do that without using a browser? The php script DOES NOT produce an html page.

Thanks
0
Comment
Question by:Richard Korts
  • 2
6 Comments
 
LVL 15

Expert Comment

by:joeposter649
ID: 17140078
0
 

Author Comment

by:Richard Korts
ID: 17140291
To joeposter649:

It's not clear from these how you would set up at windows script to run something on the web server.
0
 
LVL 15

Accepted Solution

by:
joeposter649 earned 250 total points
ID: 17140456
Create a test.vbs file in c:\ that has this in it...

Set objXMLHTTP = CreateObject("MSXML2.ServerXMLHTTP")
objXMLHTTP.Open "GET", "http://yahoo.com"
objXMLHTTP.Send
WScript.echo objXMLHTTP.responsetext

Then at the C:\ in the command prompt type test.vbs
0
 
LVL 1

Assisted Solution

by:jstell
jstell earned 250 total points
ID: 17224712
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question