Hate Posted September 29, 2010 Share Posted September 29, 2010 I'm terrible at designing websites (that's pretty much out of the question), but I would like to work on my php skills. I just can't figure out anything I can write that isn't extremely hard.. ideas? Quote Link to comment https://forums.phpfreaks.com/topic/214750-cant-figure-out-what-to-do/ Share on other sites More sharing options...
Miss_Rebelx Posted September 29, 2010 Share Posted September 29, 2010 Pick up a PHP book, read it and do the exercises at the end of the chapters. That way you get practice, solutions, learn, there won't be designing to do, and you won't have to spend extreme amounts of time developing code you won't use again. Quote Link to comment https://forums.phpfreaks.com/topic/214750-cant-figure-out-what-to-do/#findComment-1117279 Share on other sites More sharing options...
Pikachu2000 Posted September 29, 2010 Share Posted September 29, 2010 <?php echo 'Hello World!'; ?> Quote Link to comment https://forums.phpfreaks.com/topic/214750-cant-figure-out-what-to-do/#findComment-1117280 Share on other sites More sharing options...
Hate Posted September 29, 2010 Author Share Posted September 29, 2010 Pick up a PHP book, read it and do the exercises at the end of the chapters. That way you get practice, solutions, learn, there won't be designing to do, and you won't have to spend extreme amounts of time developing code you won't use again. I don't have a PHP book though... I looked into it at one point, but I really don't have that kind of money to spend on a book. Quote Link to comment https://forums.phpfreaks.com/topic/214750-cant-figure-out-what-to-do/#findComment-1117284 Share on other sites More sharing options...
the182guy Posted September 29, 2010 Share Posted September 29, 2010 Have you done the PHP tutorials on tizag and w3schools ? Quote Link to comment https://forums.phpfreaks.com/topic/214750-cant-figure-out-what-to-do/#findComment-1117293 Share on other sites More sharing options...
Hate Posted September 29, 2010 Author Share Posted September 29, 2010 Have you done the PHP tutorials on tizag and w3schools ? Yes. :-\ I just need some sort of project to work on.. Quote Link to comment https://forums.phpfreaks.com/topic/214750-cant-figure-out-what-to-do/#findComment-1117307 Share on other sites More sharing options...
the182guy Posted September 29, 2010 Share Posted September 29, 2010 How about something like a mail class. For example that would allow you to do something like $mailer = new HateMailer() $mailer->addRecipient('Mr Hate', '[email protected]'); $mailer->setFrom('[email protected]'); $mailer->setSubject('testing...'); $mailer->setBody('some text...'); $mailer->send(); It's difficult to give suggestions really because just as in the real world, one man's inspired project/app can be another man's nightmare. Quote Link to comment https://forums.phpfreaks.com/topic/214750-cant-figure-out-what-to-do/#findComment-1117310 Share on other sites More sharing options...
roopurt18 Posted September 29, 2010 Share Posted September 29, 2010 Write the game of life. Prompt the user for the number of generations to run for. Enter the number of generations: 42<enter> Generate a random grid and display to the user: **************************************** *********.****************************** ******************************.********* **************************************** ***.*****.****************************** **************************************** **************************************** **************************************** **************************************** **************************************** ********************.******************* **************************************** **************************************** **************************************** **************************************** *********.**********.******************* **************************************** **************************************** **************************************** **************************************** ******************************.********* **************************************** **************************************** **************************************** An asterisk denotes a dead node and a dot denotes a live node. Now update the grid for the number of generations with the following rules: 1) A live node surrounded by 5 or more other live nodes dies due to over crowding. 2) A dead node surrounded by 3 or less live nodes is reborn into a live node. Each time you update the grid, display it to the user. You can keep the borders dead for the sake of simplicity if you'd like. And you can add arbitrary rules such as: A live node with exactly 4 living neighbors relocates to a random dead spot within 9 units of travel. Have fun! Quote Link to comment https://forums.phpfreaks.com/topic/214750-cant-figure-out-what-to-do/#findComment-1117313 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.