RE: [PHP] Include Problem
- From: tmboyd1@xxxxxxxx ("Boyd, Todd M.")
- Date: Tue, 24 Jun 2008 16:16:13 -0500
-----Original Message-----
From: Wei, Alice J. [mailto:ajwei@xxxxxxxxxxx]
Sent: Tuesday, June 24, 2008 4:07 PM
To: Boyd, Todd M.; php-general@xxxxxxxxxxxxx
Subject: RE: [PHP] Include Problem
---8<--- snip
orI think that the variables passed to will be used by that codeto
do perform some operations on another remote machine, (according to
what I got from my client, he calls this behind the scenes to avoid
users screw up the front end, and he is thinking of using C, Perl
(hopefullyPython), which is why I am hoping that I can produce one singlescript,
and have it execute some script without the user pushing any button.I
don't think I plan on "scraping" websites. However, if you areto
suggesting that it is easier to do in Ajax to do what I am intending
do here, I would love to check it out and forget about PHP
whichnot).to
Most of the documentation I have been seeing on exec() seems
be executing UNIX commands at
http://us2.php.net/manual/en/function.exec.php. One main issue,
Ione
am not sure if it is entirely relevant, is that I am using PHP onwhile
Windows with my current script, (the one to execute things from),
the script that would be executed is located on a Linux machine.Would
this be an issue when I am doing this with what I am trying to dohere?
Alice,
exec() will execute Windows commands, as well. However, I'm not sure I
understand the reason for separating your script into two files--the
remote and the local scripts.
To answer your question, I am separating these because the script
that will be placed on the remoate server is filled with dense
calculation operations, and putting these on the same server as the
I am writing and running from the local machine would possibly take upclient
too much resources of the local server, and thus this only interacts
with the local server I am working with and not with the client
machine.
I will assume you are gathering data in your script (local), shipping
this off to a script on the client's machine (remote), and passing a
program (C/Python/Whatever) values you gathered using your script
(local).
---
That would be correect, although I am not passing this to a
as I mentioned previously, and therefore everything would be ideallyif
executed directly without any person to invoke the script.
Under this assumption, I would gather the data via
form/extraction/upload/whatever, and use cURL (a PHP library) to
"visit"
the remote script, passing values either via GET or POST. The remote
script would then parse these values and send them to the appropriate
exec() command.
That sounds like something I have to do, but the question is,
I don't have anyone pushing any button to invoke the script, how would
it execute without using GET or POST before it uses exec()?
Hope this makes a little more sense now.
Alice,
I'm not sure I follow you. Are you speaking of the local script or the
remote script as far as automation? The local script is executed when a
user requests it. The remote script will be executed when your local
script uses cURL to "visit" it. No users pressing buttons involved to my
knowledge.
Unless... is it a form? I'm a bit lost now. I'm not "Midwestern tourist
in Malaysia" lost, but I'm definitely a bit confused.
Todd Boyd
Web Programmer
.
- References:
- RE: [PHP] Include Problem
- From: "Jay Blanchard"
- Re: [PHP] Include Problem
- From: Jim Lucas
- Re: [PHP] Include Problem
- From: "Daniel Brown"
- Re: [PHP] Include Problem
- From: "Daniel Brown"
- RE: [PHP] Include Problem
- From: "Boyd, Todd M."
- RE: [PHP] Include Problem
- From: "Boyd, Todd M."
- RE: [PHP] Include Problem
- From: "Boyd, Todd M."
- RE: [PHP] Include Problem
- From: "Boyd, Todd M."
- RE: [PHP] Include Problem
- Prev by Date: RE: [PHP] Include Problem
- Next by Date: Re: Include Problem
- Previous by thread: RE: [PHP] Include Problem
- Next by thread: Re: [PHP] Monitor a WP website
- Index(es):
Relevant Pages
|