jjacquay712 Posted March 6, 2009 Share Posted March 6, 2009 What would be the best way to go about making a php script that installs itself without a user having to edit php configs manually? For example, phpbb has an installer script that creates databases and creates database username and password variables for later use. I was thinking about having the script write a file called config.inc.php, but many servers dont support the fwrite function... What would you do? Thanks, John Quote Link to comment https://forums.phpfreaks.com/topic/148168-solved-creating-an-install-script-for-a-php-app/ Share on other sites More sharing options...
btherl Posted March 6, 2009 Share Posted March 6, 2009 I would have the script check if fwrite() is supported, and check various other functions which might have equivalent functionality. If nothing is supported, then give the user instructions to install manually. Quote Link to comment https://forums.phpfreaks.com/topic/148168-solved-creating-an-install-script-for-a-php-app/#findComment-777806 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.