Jump to content

First Time Setup


Syphon

Recommended Posts

What would be the best design for a first time run PHP page? I don't want to always be checking the database/file for a value. Seems too inefficient. My main problem would be trying to keep the user on the "first time run" page without them navigating to other pages which could be a potential issue. Checking for page existence seems like the cheapest solution to me, but would always have to be done for each page. Any ideas to a clean, simple and efficient solution?

 

Thanks in advance.

Link to comment
Share on other sites

I have an application that requires data to exist within the database before it can be manipulated. So instead of customizing this data for each client, I figured a simple one-time form could ask for all the info (username, password, address, information about yourself) before allowing the client to use any part of the CMS system. Once a "master profile" has been established, they can login and create additional users, etc.

 

Think of it when you purchase a new PC. They're packaged with a setup wizard to customize the computer on it's first run.

 

I've thought about checking for users within the database on the login page. If there's no users then start the wizard, and if there are users then allow them to login. Since all the other pages require a valid user, the login page would be the only one that would "check" if the system has been initialized properly.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.