I'm trying to test some cgi php, but do not have access to a webserver (in
any way, shape, or form). I've been trying to fudge testing by using the
CLI php.exe in the windows distribution.
I've read all the faqs about the CLI and I'm not sure if there is any way to
pass the $_GET and $_POST variables. I have yet to find any information on
this topic online, either.
If anyone has any ideas of how to do this or a better way to test, please
let me know.
Thank you all in advance for your help!
-Noah 7 8961
"Richards Noah \(IFR LIT MET\)" <No***********@infineon.com> wrote: I'm trying to test some cgi php, but do not have access to a webserver (in any way, shape, or form). I've been trying to fudge testing by using the CLI php.exe in the windows distribution.
If anyone has any ideas of how to do this or a better way to test, please let me know.
Ehhh, why not install a webserver? Do a search for WAMP to find some
simple installers (like http://sourceforge.net/projects/yawamp/ (nevert
used it but sounds usefull)).
"Daniel Tryba" <sp**@tryba.invalid> wrote in message
news:41**********************@news.xs4all.nl... "Richards Noah \(IFR LIT MET\)" <No***********@infineon.com> wrote: I'm trying to test some cgi php, but do not have access to a webserver
(in any way, shape, or form). I've been trying to fudge testing by using
the CLI php.exe in the windows distribution.
If anyone has any ideas of how to do this or a better way to test,
please let me know.
Ehhh, why not install a webserver? Do a search for WAMP to find some simple installers (like http://sourceforge.net/projects/yawamp/ (nevert used it but sounds usefull)).
As I said, I do not have access to a webserver in any way shape or form.
I've attempted to install some minimal servers for testing, but am not
entirely allowed to do so.
I am looking for an alternative to this. Anybody have any ideas?
"Richards Noah \(IFR LIT MET\)" <No***********@infineon.com> wrote: Ehhh, why not install a webserver? Do a search for WAMP to find some simple installers (like http://sourceforge.net/projects/yawamp/ (nevert used it but sounds usefull)).
As I said, I do not have access to a webserver in any way shape or form. I've attempted to install some minimal servers for testing, but am not entirely allowed to do so.
It would be nice if you would post the complete story the first time.
I am looking for an alternative to this. Anybody have any ideas?
Use a free webserver that support php (like geocities?)!
Richards Noah (IFR LIT MET) wrote: I've read all the faqs about the CLI and I'm not sure if there is any way to pass the $_GET and $_POST variables.
I don't think so.
If anyone has any ideas of how to do this or a better way to test, please let me know.
If you want to serve *web* pages you need a *web* server!
You can use PHP CLI to create text (or html) files and mail those files
to whoever you want to see them.
I am not sure about Windows, but maybe you can set it up to do that file
creation/sending after a certain address receives a mail with a
specified format, or set up a scheduled task to run that script however
often you need.
--
Mail to my "From:" address is readable by all at http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
may bypass my spam filter. If it does, I may reply from another address!
I'm no expert, but could you have some up front code to store data in the
arrays, run the script, directing the output to an HTML file, then open the
file using a browser?.
Like:
$HTTP_POST_VARS[var1] = "value1";
$HTTP_POST_VARS[var2] = "value2";
-- script code --
Then: php xyx.php > xyz.html
bob
"Pedro Graca" <he****@dodgeit.com> wrote in message
news:sl*******************@ID-203069.user.uni-berlin.de... Richards Noah (IFR LIT MET) wrote: I've read all the faqs about the CLI and I'm not sure if there is any
way to pass the $_GET and $_POST variables.
I don't think so.
If anyone has any ideas of how to do this or a better way to test,
please let me know.
If you want to serve *web* pages you need a *web* server!
You can use PHP CLI to create text (or html) files and mail those files to whoever you want to see them.
I am not sure about Windows, but maybe you can set it up to do that file creation/sending after a certain address receives a mail with a specified format, or set up a scheduled task to run that script however often you need.
-- Mail to my "From:" address is readable by all at http://www.dodgeit.com/ == ** ## !! ------------------------------------------------ !! ## ** == TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>) may bypass my spam filter. If it does, I may reply from another address!
[ Please don't toppost ]
[ See http://www.greenend.org.uk/rjk/2000/06/14/quoting.html ]
Bob top-posted: I'm no expert, but could you have some up front code to store data in the arrays, run the script, directing the output to an HTML file, then open the file using a browser?.
Like:
$HTTP_POST_VARS[var1] = "value1"; $HTTP_POST_VARS[var2] = "value2";
-- script code --
Then: php xyx.php > xyz.html
POST and GET (and HEAD and OPTIONS and a few other methods) are *HTTP*
methods. They are recognized by a web server. You cannot POST something
to, for example, a mail server.
PHP CLI can easily generate HTML files, but if it needs input and
there's no server listening for HTTP requests, it has to get that input
in a different way.
--
Mail to my "From:" address is readable by all at http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
may bypass my spam filter. If it does, I may reply from another address!
"Richards Noah (IFR LIT MET)" <No***********@infineon.com> wrote in message
news:cq**********@athen03.muc.infineon.com... I'm trying to test some cgi php, but do not have access to a webserver (in any way, shape, or form). I've been trying to fudge testing by using the CLI php.exe in the windows distribution.
I've read all the faqs about the CLI and I'm not sure if there is any way
to pass the $_GET and $_POST variables. I have yet to find any information
on this topic online, either.
If anyone has any ideas of how to do this or a better way to test, please let me know.
Thank you all in advance for your help!
-Noah
Read up on the CGI specs and use CGI php.exe to mimic an actual transaction.
HTTP requests info is passed as environment variables. POST data gets into a
CGI app through stdin. With a some clever Windows Host scripting you can
create a passable development environment. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: David Billson |
last post by:
Hi all,
Fairly straight forward problem. I have a Post using HttpWebRequest
that posts data to a server. That server then posts data back to me.
Posting the data's not a problem, however I'm...
|
by: jlea |
last post by:
I'm trying to pass a filename, obtained with using the fileName property
from the OpenFileDialog, as a application parameter in
Process.StartInfo.Arguments and run a MFC/C++ application using the...
|
by: whatmore |
last post by:
1. I have a small dialog based MFC application.
2. In this application, I want to invoke an external application
(EXE).
When I tried using system () or exec () functions I am getting black...
|
by: Navik |
last post by:
I have some script bububu.db2, that IMPORTS data from some file:
IMPORT FROM "blablabla.txt" ... INSERT INTO lalala ....
Now blablabla and lalala are hardcoded. Is it possible to supply them as...
|
by: DumbNewbie |
last post by:
Hi,
My post build command line is currently moving assemblies and exes around to the correct locations
after the build as expected. I was wondering if there was a way I could get the current...
|
by: =?iso-8859-1?q?Luis_M._Gonz=E1lez?= |
last post by:
Please forgive me if what I'm asking is non sense...
I created a little program to authomate the creation of the "setup.py"
script for py2exe.
It simply prompts for the main executable script...
|
by: Shaswati |
last post by:
Hi All,
I need a windows utility which can get me the command line path for a process. Say I have an application which has a java.exe process running, it should return me the install directory for...
|
by: imtiazalikhan |
last post by:
hi i am trying to passing arthematic expressions through command line arguments but i only get result of addition and multiplication cant get result of
subtraction and division:
...
|
by: wangzq |
last post by:
Hello,
I'm passing command line parameters to my browser, I need to pass the
complete command line as-is, for example:
test.py "abc def" xyz
If I use ' '.join(sys.argv), then the double...
|
by: cjt22 |
last post by:
Hi there. I just wondered whether anyone could recommend the correct
way I should be passing command line parameters into my program. I am
currently using the following code:
def main(argv =...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| | |