Solved

Run Web Script from Windows XP Command Line

Posted on 2006-07-19
6
942 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

688 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