Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Porting Code

Status
Not open for further replies.
Jul 16, 2004
153
Hello all,
Have a quick question. There is a product that my company may want to use. The product is using LAMP structure? Anyways it was built on Linux, using MySQL running on Apache and using PHP scripts. We are a windows shop, I know in theory that PHP should work just fine, but what is the reality of porting LAMP to WAMP or WIMP?

I know this is really vauge but we were wondering in general if there are any issues if we were to port over to a windows platform using MySQL and IIS or Apache?

Thanks

mel
 
in general, no.

but there may be bits of code that rely on apache. do a search for the word "apache" in the code to see whether any apache specific calls are made. there are also differences in behaviour between CGI implementations and SAPI. this is true for both IIS and apache.

there may also be differences that you need to code for in file system operations. for example "/usr/local/file.txt" will not have the same meaning in linux as it does in windows (where it is a relative path to the cwd rather than to the root). search for "file" and "fopen" and "require" and "include" to catch references to the main culprits for filesystem calls.

there may also be issues around email handling. this should be handled transparently by php but it is worth checking.

i develop on a windows machine and deploy on a linux box. iis to apache, too. there are a few things you get to be aware of and code for (i.e. file separators in ini calls) but generally my code is deployed without any changes necessary.
 
PHP itself should work well with Apache regardless of platform. The real "gotcha" with PHP applications is that a particular application may require a PHP function library that itself requires an external library that is not necessarily as readily available on Win32. This problem can often be avoided if you are comfortable compiling code from source on Win32.




Want the best answers? Ask the best questions! TANSTAAFL!
 
Thanks for all your comments. This will definatly help us if we decide to go forward with this.

Mel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top