Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #16378 > unrolled thread

how use php -w command in localhost on win

Started byalex <alex@nomailno.it>
First post2016-02-11 14:50 +0100
Last post2016-02-12 22:51 -0500
Articles 9 on this page of 29 — 10 participants

Back to article view | Back to comp.lang.php


Contents

  how use php -w command in localhost on win alex <alex@nomailno.it> - 2016-02-11 14:50 +0100
    Re: how use php -w command in localhost on win Erwin Moller <erwinmollerusenet@xs4all.nl> - 2016-02-11 16:56 +0100
      Re: how use php -w command in localhost on win alex <alex@nomailno.it> - 2016-02-11 17:19 +0100
        Re: how use php -w command in localhost on win Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-11 20:38 +0100
          Re: how use php -w command in localhost on win Tim Streater <timstreater@greenbee.net> - 2016-02-11 21:50 +0000
        Re: how use php -w command in localhost on win Jerry Stuckle <jstucklex@attglobal.net> - 2016-02-11 14:45 -0500
          Re: how use php -w command in localhost on win alex <alex@nomailno.it> - 2016-02-12 10:42 +0100
            Re: how use php -w command in localhost on win Arno Welzel <usenet@arnowelzel.de> - 2016-02-12 10:45 +0100
              Re: how use php -w command in localhost on win alex <alex@nomailno.it> - 2016-02-12 11:36 +0100
                Re: how use php -w command in localhost on win Arno Welzel <usenet@arnowelzel.de> - 2016-02-12 13:38 +0100
                  Re: how use php -w command in localhost on win alex <alex@nomailno.it> - 2016-02-12 16:07 +0100
                    Re: how use php -w command in localhost on win "R.Wieser" <address@not.available> - 2016-02-12 16:31 +0100
                      Re: how use php -w command in localhost on win alex <alex@nomailno.it> - 2016-02-12 17:12 +0100
                        Re: how use php -w command in localhost on win "R.Wieser" <address@not.available> - 2016-02-12 18:28 +0100
                          Re: how use php -w command in localhost on win "A. Begarin" <andova.begarin@gmail.com> - 2016-02-12 18:24 -0800
                            Re: how use php -w command in localhost on win "R.Wieser" <address@not.available> - 2016-02-13 10:18 +0100
                    Re: how use php -w command in localhost on win "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-02-12 21:41 +0100
                    Re: how use php -w command in localhost on win Arno Welzel <usenet@arnowelzel.de> - 2016-02-13 08:04 +0100
            Re: how use php -w command in localhost on win Jerry Stuckle <jstucklex@attglobal.net> - 2016-02-12 09:57 -0500
    Re: how use php -w command in localhost on win Matthew Carter <m@ahungry.com> - 2016-02-11 21:29 -0500
    Re: how use php -w command in localhost on win Arno Welzel <usenet@arnowelzel.de> - 2016-02-12 09:04 +0100
    Re: how use php -w command in localhost on win "R.Wieser" <address@not.available> - 2016-02-12 10:20 +0100
      Re: how use php -w command in localhost on win alex <alex@nomailno.it> - 2016-02-12 10:43 +0100
        Re: how use php -w command in localhost on win Erwin Moller <erwinmollerusenet@xs4all.nl> - 2016-02-12 11:04 +0100
          Re: how use php -w command in localhost on win Erwin Moller <erwinmollerusenet@xs4all.nl> - 2016-02-12 11:08 +0100
            Re: how use php -w command in localhost on win alex <alex@nomailno.it> - 2016-02-12 11:41 +0100
    Re: how use php -w command in localhost on win "A. Begarin" <andova.begarin@gmail.com> - 2016-02-12 18:13 -0800
      Re: how use php -w command in localhost on win "A. Begarin" <andova.begarin@gmail.com> - 2016-02-12 18:19 -0800
        Re: how use php -w command in localhost on win Jerry Stuckle <jstucklex@attglobal.net> - 2016-02-12 22:51 -0500

Page 2 of 2 — ← Prev page 1 [2]


#16385

FromArno Welzel <usenet@arnowelzel.de>
Date2016-02-12 09:04 +0100
Message-ID<56BD9215.6060609@arnowelzel.de>
In reply to#16378
alex schrieb am 2016-02-11 um 14:50:

> on WIn in localhost (LAMP)

LAMP is not Windows - "Linux Apache MySQL PHP"

Maybe you refer to WAMP - "Windows Apache ..."

> how can use this command?
> 
> php -w file1.php > file2.php;

Just use it. What exactly is your problem with it?


-- 
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
http://fahrradzukunft.de

[toc] | [prev] | [next] | [standalone]


#16386

From"R.Wieser" <address@not.available>
Date2016-02-12 10:20 +0100
Message-ID<56bda312$0$23852$e4fe514c@news.xs4all.nl>
In reply to#16378
Alex,

> how can use this command?

I'm sorry, but thats a WAY to broad question ...  :-(

Currently I/we cannot even be certain you actually have a *problem*.   For
all I know you might just have a question on how to use the output in the
resulting "file2.php" ...


So, *describe the problem* you have.   Tell us what you did and what the
result was.  Than tell us what you expected the result to be.


Also, if you executed that command and it returned an failure message *what
did that message say* ?

Such a message most often holds a description of the cause of the problem,
which is rather helpfull to anyone (including you!) trying to solve it.


"A good question contains often contains over 50% of the answer".

Often the process of trying to write a clear, concise question will, in
itself, result in the answer you where trying to ask for.  And yes, that has
happened to me more than once. :-)

Regards,
Rudy Wieser


-- Origional message
alex <alex@nomailno.it> schreef in berichtnieuws
n9i3jk$34b$1@gioia.aioe.org...
> on WIn in localhost (LAMP)
> how can use this command?
>
> php -w file1.php > file2.php;

[toc] | [prev] | [next] | [standalone]


#16388

Fromalex <alex@nomailno.it>
Date2016-02-12 10:43 +0100
Message-ID<n9k9fo$1gcf$2@gioia.aioe.org>
In reply to#16386
Il 12/02/2016 10:20, R.Wieser ha scritto:
> Alex,
>
>> how can use this command?
>
> I'm sorry, but thats a WAY to broad question ...  :-(
>
> Currently I/we cannot even be certain you actually have a *problem*.   For
> all I know you might just have a question on how to use the output in the
> resulting "file2.php" ...
>
>
> So, *describe the problem* you have.   Tell us what you did and what the
> result was.  Than tell us what you expected the result to be.
>
>
> Also, if you executed that command and it returned an failure message *what
> did that message say* ?
>
> Such a message most often holds a description of the cause of the problem,
> which is rather helpfull to anyone (including you!) trying to solve it.
>
>
> "A good question contains often contains over 50% of the answer".
>
> Often the process of trying to write a clear, concise question will, in
> itself, result in the answer you where trying to ask for.  And yes, that has
> happened to me more than once. :-)
>
> Regards,
> Rudy Wieser


I use wamp (not lamp) software for to develop php code under windows;
so not know how I can use the command php -w;

tested also this:
I created a file test.php with this code
exec("php -w file1.php > file2.php;");

where inner the file1.php have some php code;

when I open the test.php file the command exec start,
the file2.php is created but is void (instead should to be how the file1 
with no spaces and comments);






[toc] | [prev] | [next] | [standalone]


#16390

FromErwin Moller <erwinmollerusenet@xs4all.nl>
Date2016-02-12 11:04 +0100
Message-ID<56bdae25$0$23833$e4fe514c@news.xs4all.nl>
In reply to#16388
On 2/12/2016 10:43 AM, alex wrote:
> Il 12/02/2016 10:20, R.Wieser ha scritto:
>> Alex,
>>
>>> how can use this command?
>>
>> I'm sorry, but thats a WAY to broad question ...  :-(
>>
>> Currently I/we cannot even be certain you actually have a *problem*.
>> For
>> all I know you might just have a question on how to use the output in the
>> resulting "file2.php" ...
>>
>>
>> So, *describe the problem* you have.   Tell us what you did and what the
>> result was.  Than tell us what you expected the result to be.
>>
>>
>> Also, if you executed that command and it returned an failure message
>> *what
>> did that message say* ?
>>
>> Such a message most often holds a description of the cause of the
>> problem,
>> which is rather helpfull to anyone (including you!) trying to solve it.
>>
>>
>> "A good question contains often contains over 50% of the answer".
>>
>> Often the process of trying to write a clear, concise question will, in
>> itself, result in the answer you where trying to ask for.  And yes,
>> that has
>> happened to me more than once. :-)
>>
>> Regards,
>> Rudy Wieser
>
>
> I use wamp (not lamp) software for to develop php code under windows;
> so not know how I can use the command php -w;
>
> tested also this:
> I created a file test.php with this code
> exec("php -w file1.php > file2.php;");
>
> where inner the file1.php have some php code;
>
> when I open the test.php file the command exec start,
> the file2.php is created but is void (instead should to be how the file1
> with no spaces

If you just give this command:
php -w file1.php

Do you see any output?

Regards,
Erwin Moller


-- 
"That which can be asserted without evidence, can be dismissed without 
evidence."
-- Christopher Hitchens

[toc] | [prev] | [next] | [standalone]


#16391

FromErwin Moller <erwinmollerusenet@xs4all.nl>
Date2016-02-12 11:08 +0100
Message-ID<56bdaf2b$0$23833$e4fe514c@news.xs4all.nl>
In reply to#16390
On 2/12/2016 11:04 AM, Erwin Moller wrote:
> On 2/12/2016 10:43 AM, alex wrote:
>> Il 12/02/2016 10:20, R.Wieser ha scritto:
>>> Alex,
>>>
>>>> how can use this command?
>>>
>>> I'm sorry, but thats a WAY to broad question ...  :-(
>>>
>>> Currently I/we cannot even be certain you actually have a *problem*.
>>> For
>>> all I know you might just have a question on how to use the output in
>>> the
>>> resulting "file2.php" ...
>>>
>>>
>>> So, *describe the problem* you have.   Tell us what you did and what the
>>> result was.  Than tell us what you expected the result to be.
>>>
>>>
>>> Also, if you executed that command and it returned an failure message
>>> *what
>>> did that message say* ?
>>>
>>> Such a message most often holds a description of the cause of the
>>> problem,
>>> which is rather helpfull to anyone (including you!) trying to solve it.
>>>
>>>
>>> "A good question contains often contains over 50% of the answer".
>>>
>>> Often the process of trying to write a clear, concise question will, in
>>> itself, result in the answer you where trying to ask for.  And yes,
>>> that has
>>> happened to me more than once. :-)
>>>
>>> Regards,
>>> Rudy Wieser
>>
>>
>> I use wamp (not lamp) software for to develop php code under windows;
>> so not know how I can use the command php -w;
>>
>> tested also this:
>> I created a file test.php with this code
>> exec("php -w file1.php > file2.php;");
>>
>> where inner the file1.php have some php code;
>>
>> when I open the test.php file the command exec start,
>> the file2.php is created but is void (instead should to be how the file1
>> with no spaces
>
> If you just give this command:
> php -w file1.php
>
> Do you see any output?
>

PS: On my windows10 machine I can do
php -f test.php > output.txt




-- 
"That which can be asserted without evidence, can be dismissed without 
evidence."
-- Christopher Hitchens

[toc] | [prev] | [next] | [standalone]


#16393

Fromalex <alex@nomailno.it>
Date2016-02-12 11:41 +0100
Message-ID<n9kcrp$1n3o$3@gioia.aioe.org>
In reply to#16391
>>> I use wamp (not lamp) software for to develop php code under windows;
>>> so not know how I can use the command php -w;
>>>
>>> tested also this:
>>> I created a file test.php with this code
>>> exec("php -w file1.php > file2.php;");
>>>
>>> where inner the file1.php have some php code;
>>>
>>> when I open the test.php file the command exec start,
>>> the file2.php is created but is void (instead should to be how the file1
>>> with no spaces
>>
>> If you just give this command:
>> php -w file1.php
>>
>> Do you see any output?
>>
>
> PS: On my windows10 machine I can do
> php -f test.php > output.txt


see my answer at Welzel how I solved;
thanks for all your clarification

[toc] | [prev] | [next] | [standalone]


#16404

From"A. Begarin" <andova.begarin@gmail.com>
Date2016-02-12 18:13 -0800
Message-ID<a69bba35-d7ac-47dc-a7dd-caf96b0fb078@googlegroups.com>
In reply to#16378
All such PHP questions should start with http://php.net/manual/en/funcref.php, for you, here are several to begin with:

http://php.net/manual/en/function.exec.php
http://php.net/manual/en/function.system.php
http://php.net/manual/en/function.popen.php

In all honesty, *start there first* and experiment a bit on your own before asking here -- asking when only things do not work out -- which certainly can happen.

I am new to this forum, and have only seen a few of the replies... (I'll withhold opinion).

But I know what "struggling with PHP means" -- and mostly it means *not fully understanding the API*.

[toc] | [prev] | [next] | [standalone]


#16405

From"A. Begarin" <andova.begarin@gmail.com>
Date2016-02-12 18:19 -0800
Message-ID<2c0baf2f-6c68-4a96-9611-afcfd00f2d92@googlegroups.com>
In reply to#16404
P.S.

You need to know your systems; PATH. Try

    <?php
    phpinfo();

or 

    <?php
    echo '<pre>';
    var_export($_SERVER);

to know you PHP environment -- which should be considered mandatory for PHP develompment.

P.P.S.

Ignore all replies that do not include PHP code/programming examples/advice.

[toc] | [prev] | [next] | [standalone]


#16407

FromJerry Stuckle <jstucklex@attglobal.net>
Date2016-02-12 22:51 -0500
Message-ID<n9m92t$1b7$1@jstuckle.eternal-september.org>
In reply to#16405
On 2/12/2016 9:19 PM, A. Begarin wrote:
> P.S.
> 
> You need to know your systems; PATH. Try
> 
>     <?php
>     phpinfo();
> 
> or 
> 
>     <?php
>     echo '<pre>';
>     var_export($_SERVER);
> 
> to know you PHP environment -- which should be considered mandatory for PHP develompment.
> 
> P.P.S.
> 
> Ignore all replies that do not include PHP code/programming examples/advice.
> 

Yes, you're new here.  However, we don't give blind advice, and we don't
give free consulting.

Many of us here have been programming PHP for years.  We are willing to
help people with their problems - but we won't do their work for them.
And we need appropriate information before we can give good advice.

So many replies won't contain PHP code/programming examples/advice.  But
they can still be helpful.

Of course, there are a couple of trolls here, like there are in
virtually every newsgroup.  But it doesn't take long to figure out who
they are.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.lang.php


csiph-web