You are here: Re: PHP.exe interpreter and sending variables « PHP Programming Language « IT news, forums, messages
Re: PHP.exe interpreter and sending variables

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
--

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация