Solved

Run Web Script from Windows XP Command Line

Posted on 2006-07-19
6
935 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
Comment Utility
0
 

Author Comment

by:Richard Korts
Comment Utility
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
Comment Utility
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
Comment Utility
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
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…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now