Re: php development environment in windows problems [message #175952 is a reply to message #175939] |
Thu, 10 November 2011 08:54 |
alvaro.NOSPAMTHANX
Messages: 277 Registered: September 2010
Karma:
|
Senior Member |
|
|
El 09/11/2011 19:19, Brian FitzGerald escribió/wrote:
> 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... ?
First news I have about that, and I've been developing on Windows for years.
>
> For example: - certain php functions are missing because apparently
> windows lacks strfmon capabilities
And certain PHP functions are missing in Unix because they are only
implemented for Windows but that doesn't imply that PHP does not run
well on Unix. You simply have to read the documentation for every new
function you use, and not only for that. Pretty often, your hosting
environment uses an old PHP version and many interesting features are
not available yet.
Whatever, I couldn't find strfmon in the PHP manual. It appears to be a
function from the C standard library. With no PHP code to inspect, it's
hard to suggest a solution about that.
> As a result, many things you would expect to run correctly, don't.
> For example, timthumb, various WordPress themes, well, just about any
> PHP code is really going to be unreliable.
Again, if you are having issues with a third-party library, you should
try to:
1. Read the library specs to know whether your system is supported. The
most typical issue you find with third-party code is that your PHP
version is either too old or too new.
2. Try to solve the precise issue, rather than assuming that there is
not way to fix it unless you buy a new computer.
> Is there a way to make PHP run reliably as a Windows dev environment?
> I really can't just go uninstalling all my development software (PHP,
> Apache, mySQL) and then reinstalling a prebuilt package (xampp, wamp)
> because that's going to create a bunch of problems for me.
What makes you think that using different binaries generated from the
same source code will fix problems with third-party PHP code?
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
|
|
|