|
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
> Hi there ;-)
> Is there a way to trigger a remote PHP script from a Windows XP machine
> (with boardutils)?
> --
> Freundliche Gr=FC=DFe,
> Franz Marksteiner
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
> wrote:
>> Hi there ;-)
>> Is there a way to trigger a remote PHP script from a Windows XP
>> machine (with boardutils)?
Boardutils is my expression for "no third party" ;-)
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.
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
> 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.
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
> reports.review@googlemail.com wrote:
>> wrote:
>>> Hi there ;-)
>>> Is there a way to trigger a remote PHP script from a Windows XP
>>> machine (with boardutils)?
> Boardutils is my expression for "no third party" ;-)
>> 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.
> 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...
>> 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.
> Yes, I would like to achieve this "in the background".
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
> On Tue, 05 Feb 2008 12:22:03 +0100, Franz Marksteiner
>> reports.review@googlemail.com wrote:
>>> wrote:
>>>> Hi there ;-)
>>>> Is there a way to trigger a remote PHP script from a Windows XP
>>>> machine (with boardutils)?
>> Boardutils is my expression for "no third party" ;-)
>>> 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.
>> 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...
>>> 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.
>> Yes, I would like to achieve this "in the background".
> 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.
I will look for a appropriate group.
Thanks for pointing me to the Telnet direction!
--
Freundliche Grüße,
Franz Marksteiner
|
| Similar Threads | Posted | | 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 |
|
> Is there a way to trigger a remote PHP script from a Windows XP machine
> (with boardutils)?
> --
> Freundliche Gr=FC=DFe,
> Franz Marksteiner