Click here to get back home

Triggering PHP script from Windows XP machine

 HomeNewsGroups | Search

comp.lang.php - PHP programming language discussions 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Triggering PHP script from Windows XP machine Franz Marksteiner 02-04-2008
Posted by Franz Marksteiner on February 4, 2008, 2:42 pm
Please log in for more thread options
Hi there ;-)

Is there a way to trigger a remote PHP script from a Windows XP machine
(with boardutils)?

--
Freundliche Grüße,
Franz Marksteiner


Posted by reports.review on February 5, 2008, 5:55 am
Please log in for more thread options
wrote:
show/hide quoted text

Not sure what BoardUtils is, but the way to do is is set up a Windows
Scheduled Task pointing at a batch file. In the batch file, enter your
php command, i.e. "C:\PHP\PHP.EXE C:\WEB\MY_SCRIPT.PHP"

In MY_SCRIPT.PHP, use cURL() or FOPEN() to get the page on the remote
site.

You could possibly do this directly, by launching Internet Explorer
from the batch job, passing the web site address, but it's better to
run PHP for this type of task.

Rob.

Posted by Franz Marksteiner on February 5, 2008, 6:22 am
Please log in for more thread options
reports.review@googlemail.com wrote:
show/hide quoted text

Boardutils is my expression for "no third party" ;-)

show/hide quoted text

Thatfore I would have to run a local PHP server.
Is there no way to just run some remote script, without any output and
intervention?
Just how the browser would do it, but as just mentioned with no output and
application window...

show/hide quoted text

Yes, I would like to achieve this "in the background".

--
Freundliche Grüße,
Franz Marksteiner


Posted by Rik Wasmus on February 5, 2008, 6:28 am
Please log in for more thread options
On Tue, 05 Feb 2008 12:22:03 +0100, Franz Marksteiner
show/hide quoted text

Hmmz, with 'boardutils', and background processing, I'd say you'll have to
tell your batch file to TELNET to the webserver (port 80), as the default
browser cannot be started/pointed to the website 'quietly'. This had got
nothing to do with PHP anymore in that case, so if you have questions
about that, ask in a Windows/Telnet related location.
--
Rik Wasmus

Posted by Franz Marksteiner on February 5, 2008, 6:42 am
Please log in for more thread options
Rik Wasmus wrote:
show/hide quoted text

I will look for a appropriate group.
Thanks for pointing me to the Telnet direction!

--
Freundliche Grüße,
Franz Marksteiner


Similar ThreadsPosted
PHP Windows domain user/machine February 22, 2005, 9:38 am
Installing PrinceXML on a windows machine July 24, 2007, 4:29 am
Compiling PHP source on a Windows XP machine August 14, 2007, 5:40 pm
Can ActiveX controls work in PHP running on Apache On a Windows Machine? March 27, 2006, 9:29 am
Registry operation in PHP(Need to read some windows registry Key on client machine) November 30, 2005, 10:09 am
FF triggering $_POST array even on no submission? March 3, 2009, 2:14 pm
Triggering a mysql query on page load July 28, 2004, 3:40 pm
Croning a script in Windows March 16, 2006, 9:09 pm
working with php as script in windows tasks September 6, 2005, 1:57 pm
How to send mail using php script on Windows XP? August 10, 2009, 4:16 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy