Solved

Run Web Script from Windows XP Command Line

Posted on 2006-07-19
6
937 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
query of query sort 6 100
CSS Question.. 3 86
Web Development Tools for MVC 3 91
Problem to Popup 2 82
It's sometimes a bit tricky to use date functions in Oracle BPEL. I'll explain quickly how you can add N days to the current date. In a BPEL process this can be useful, and you can adapt it to fit your needs. First of all, let's see how to add 1 …
I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
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…
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…

773 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