You are here: Re: Passing $_POST variables to command line php « All PHP « IT news, forums, messages
Re: Passing $_POST variables to command line php

Posted by Martin Jay on 05/17/06 00:07

In message <446a3807$0$31638$e4fe514c@news.xs4all.nl>, "Wenting, Marcel"
<liledevil@gmail.invalid> writes
>Infiliset wrote:
>> Hi all! I'm trying to test some php script using the command line
>>php.exe. Is there any way to pass the $_POST variables? I know how to
>>pass the $_GET variables, but I don't know how to do this for the
>>$_POST ones. Thank you all!

>I would think of declaring this yourself at the beginning of your
>script, cant think of any other logical way since it's http headers and
>command line just aint http

Yep, or set up a local web server and create a form to send variables to
the script. There's a free one, which is easy to set up, available
from:

<http://www.aprelium.com/>

It needs a bit of configuring. Details can be found at:

<http://www.aprelium.com/abyssws/php.html>

It's probably a good idea to run your own local web server if you're
going to develop PHP applications for the WWW.
--
Martin Jay

 

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

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