Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: php development environment in windows problems Date: Thu, 10 Nov 2011 17:49:24 +0100 Organization: A noiseless patient Spider Lines: 47 Message-ID: <4EBC0094.3000705@arnowelzel.de> References: <31372438.1123.1320862770001.JavaMail.geo-discussion-forums@yqie15> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Injection-Info: mx04.eternal-september.org; posting-host="dd4uQGf4fHOQcq7/hg1u1Q"; logging-data="3818"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Let9M6/YzUmEXS3LxkHFoPZsXiRieqmo=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: <31372438.1123.1320862770001.JavaMail.geo-discussion-forums@yqie15> Cancel-Lock: sha1:sF7ISRxSGPKp9DscqiMbOrx+93o= Xref: x330-a1.tempe.blueboxinc.net comp.lang.php:3749 Brian FitzGerald, 2011-11-09 19:19: > I have been attempting to develop PHP on a windows laptop and then deploy > to a production Linux server. The problem I'm running into is > apparently PHP doesn't run well on windows dev environments... ? At least with DokuWiki (with proper image scaling using GDLib), Typo3, Contao, phpMyAdmin and a number of other tools i never had problems with Windows. > For example: > - certain php functions are missing because apparently windows lacks > strfmon capabilities Therefore it is a good idea to avoid functions, which rely on the existance of certain C library functions, which may not exist on every platform or may behave different. > As a result, many things you would expect to run correctly, don't. *Some* things may not work. > For example, timthumb, various WordPress themes, well, just about > any PHP code is really going to be unreliable. The question is, *why* does timthumb not work? Maybe you just forgot to enable certain extensions or to configure GDLib or ImageMagick properly (ImageMagick exists for Windows as well). Some extensions may need additional stuff, which has to be installed separately. The same applies to the "various" WordPress themes - you should check, what *exactly* does not work (check your Apache error logs and/or configure PHP to log errors and warning). > Is there a way to make PHP run reliably as a Windows dev environment? Well - as i already said - i have no problems at all and i also just use "vanilla" Apache, PHP and MySQL and no prebuilt packages. Another way would be to use a Linux within a VM. VMware player is for free. -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de