PHP - Pausing And Resuming Php
I was wondering if there was any way that I could pause a php script and then restart it with USER INPUT?
Kind of like when you are copying a file to a folder with the same file name and Windows asks you if you want to copy it there. I was also thinking that if above isn't possible, would it be possible to start a curl session in one script (say index.php) and then continue it in another (say curl.php)? Similar TutorialsI'm trying to figure out how to do something. I have two tables for use in a quiz program--one table for questions and one table for answers. I'm thinking about looping through all the questions, one at a time, and all the answers that correspond to the given question, echoing the form: the radio buttons and the submit button, and have the program pause to wait for the submit button to be clicked before looping to the next question/answer set. I'm assuming I'll need to make two queries, one for the Questions table, and one for the Answers table, incrementing the QuestionID with each loop (or randomizing them and marking them as asked so the same question doesn't come up multiple times), processing the answers before the next loop, etc. 1. Is this possible? 2. Is this a good approach? 3. Where would I look to learn how to do all this? I don't have any code to show because I haven't yet written anything about this. I'm still thinking about how I would do it. I have to learn about randomizing, and about nested queries, and about a few other things. I'm just tossing this "out there" for some ideas. Thanks to all. Rich Hollenbeck |