nick1 Posted February 16, 2007 Share Posted February 16, 2007 Greetings, I would like to know what your thoughts are on using multi-purpose PHP pages. I've been reading a little bit about them but am still deciding if I feel comfortable with the idea and if multi-purpose pages just make coding more confusing and if they are a hindrance on server performance. An example I have in mind is this: page1.php contains the following: click here to show all authors in the d.b. page2.php contains the following: displays all authors as requested in page1.php first author name is displayed here now click here to delete the author from the d.b. page3.php contains the following: a php script that deletes the selected author So, that's a total of 3 php scripts. I suppose another option would be to populate a drop-down box with all of the authors in the d.b. Then, when an author is selected from the drop-down box, a delete button can be clicked and a script on page2.php would be executed which deletes the author from the d.b. So, we've eliminated an additional script. Anyway, I hope this makes sense. I'm a little fried right now from coding most of the day. I'd appreciate your feedback. Thanks, *Nick* Quote Link to comment https://forums.phpfreaks.com/topic/38717-thoughts-on-multi-purpose-pages/ Share on other sites More sharing options...
fert Posted February 16, 2007 Share Posted February 16, 2007 It really depends on preference, but one long PHP page will take slightly longer to parse. Quote Link to comment https://forums.phpfreaks.com/topic/38717-thoughts-on-multi-purpose-pages/#findComment-186004 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.