Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: how use php -w command in localhost on win Date: Fri, 12 Feb 2016 10:45:23 +0100 Lines: 20 Message-ID: <56BDA9B3.3040102@arnowelzel.de> References: <56bcaf21$0$23758$e4fe514c@news.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Trace: individual.net uf5r76PYEx3f9/gWK8OMVwLUoQ41TTLrybOPihoQ8u3FrdqqNU Cancel-Lock: sha1:sKNvFXUt7B6VZcV58wuprixf6O0= In-Reply-To: Xref: csiph.com comp.lang.php:16389 alex schrieb am 2016-02-12 um 10:42: [...] > I use wamp 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;"); And the full path to php.exe is in the PATH environment variable of Windows? Otherwise exec() will not know how to start php. -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de http://fahrradzukunft.de