Solved

Run Web Script from Windows XP Command Line

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

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

Title # Comments Views Activity
Owl Carousel 6 263
Format results with PHP 3 82
use of cookies and regulations 1 103
Grunt Copy file to another destination. 1 80
When you work with shopping cart / ecommerce relates web sites, you need to pass the certain form post details to the payment gateway process page with required details for the products items you give to order. Also you may need to track the ordered…
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…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

756 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