shedokan Posted February 4, 2008 Share Posted February 4, 2008 I want to check my php abilities, any ideas how? or what script should I write? thanks. Quote Link to comment https://forums.phpfreaks.com/topic/89443-check-my-php-abilities/ Share on other sites More sharing options...
awpti Posted February 5, 2008 Share Posted February 5, 2008 Just.. start coding. either come up with something new or take an existing idea and try to reproduce it. Quote Link to comment https://forums.phpfreaks.com/topic/89443-check-my-php-abilities/#findComment-458168 Share on other sites More sharing options...
maxudaskin Posted February 5, 2008 Share Posted February 5, 2008 I say, make a page where people can add, edit and delete comments that can be put in either MySQL or just a TXT file, your choice. Oh, and do not use bare HTML, so do this: <?php echo '<html>'; echo '<body>' echo 'Hello World'; echo '</html>'; echo '</body>' ?> Instead of: <html> <body> <?php echo 'Hello World'; ?> </html> </body> Quote Link to comment https://forums.phpfreaks.com/topic/89443-check-my-php-abilities/#findComment-458223 Share on other sites More sharing options...
awpti Posted February 5, 2008 Share Posted February 5, 2008 Please don't do it that way. echo is relatively expensive compared to breaking in and out of PHP to output flat HTML. Hell, even a HEREDOC is faster than an echo. <html> <body> <?php echo 'Hello World'; ?> </html> </body> Is cleaner and more easily modified/read. Don't start off on the wrong foot. Just look at the two parsing errors in the code provided - that he probably didn't even notice. These forums aren't always the best place to look for 'best practices' information. Good place to get a start, but don't get your habits from this joint Quote Link to comment https://forums.phpfreaks.com/topic/89443-check-my-php-abilities/#findComment-458244 Share on other sites More sharing options...
kts Posted February 5, 2008 Share Posted February 5, 2008 Depends, what scripts have you written before? Quote Link to comment https://forums.phpfreaks.com/topic/89443-check-my-php-abilities/#findComment-458250 Share on other sites More sharing options...
maxudaskin Posted February 5, 2008 Share Posted February 5, 2008 Ok, I wrote it fast, I missed two semicolons, but, the reason I said do everything in PHP is so that he can practise the PHP more. Quote Link to comment https://forums.phpfreaks.com/topic/89443-check-my-php-abilities/#findComment-458251 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.