|
Posted by Alvaro G Vicario on 08/11/05 16:10
*** Ramza Brown wrote/escribió (Thu, 11 Aug 2005 08:04:21 -0400):
> Question, I am testing php scripts through the console app(php.exe) how
> can I send form variables to it? Or can I? Can I just fill in
> variables into _POST['val'] for example.
POST is a method of the HTTP protocol, protocol that is obviously not used
when executing a script though the command line. If your input comes from
forms, you should probably write an intermediate script that runs through a
web server and convert the input in something a command line tool can reach
(database, file, command-line arguments...).
Yes, $_POST is a writeable array but, where are you getting the values to
fill into it?
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
[Back to original message]
|