random1 Posted July 9, 2008 Share Posted July 9, 2008 What's the best practice for making a PHP application portable? e.g. - Able to be hosted on Windows, Mac and *nix operating systems - Not require unreasonable PHP extension packages - Able to be run on many various databases: mysql, postgres etc.. - Able to be run on Apache or other File Servers Quote Link to comment https://forums.phpfreaks.com/topic/113850-php-programming-for-portability/ Share on other sites More sharing options...
trq Posted July 9, 2008 Share Posted July 9, 2008 PHP is itself quite cross platform. Just make sure you only use extensions that are available to all systems, and use the predefined constants such as PATH_SEPARATOR, instead of hardcoding : for *nix based systems or ; for win based systems. Quote Link to comment https://forums.phpfreaks.com/topic/113850-php-programming-for-portability/#findComment-585098 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.