| | |||||
| ||||||||
| Contests Forum Forum for contests, games, trivia and related posts. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() | The first Challenge to kick it off. ( PHP ) This is going to be the first challenge to kick off the launch of this forum. The Reward will be a two year domain registration of any .com, .net, or .org domain name! The challenge: Create a text file containing the letters a-z all on one line. Exactly like this: abcdefghijklmnopqrstuvwxyz The letters can't contain any delimiters. Now what you need to do with PHP is figure out a way to open up the text file and sort through and split the letters so you can print each letter to the browser on a separate line. ????: NamePros.com http://www.namepros.com/contests-forum/14835-the-first-challenge-kick-off-php.html So the end result should be: a b c d e etc.. You must do this using only one echo or print statement. So echo 'a'; echo 'b'; echo 'c'; etc.. would not be a valid way of doing it. These will not be counted as valid either: echo a<br>b<br>c<br>d<br>etc.. print a<br>b<br>c<br>d<br>etc.. You must figure out another way to do it, any of the above methods will not be accepted. You'll have to think up some code so you can do it with only one echo or print statement wich will result in each letter being printed on a new line. ![]() You can use all the resources available to you to figure out how to do this! The first person to post the code that can do it in this thread will be the winner. Ask in here if you have any questions about this challenge. We'll try to have atleast one challenge a month with some type of reward, some will be easier and some will be harder. ![]() Good Luck! |
| |
| | #5 (permalink) |
| Senior Member Join Date: May 2003
Posts: 2,187
![]() ![]() ![]() | oh yeh sorry PHP Code: |
| |
| | #6 (permalink) |
| New Member Join Date: Feb 2003
Posts: 3
![]() | http://www.animebeta.com/contest/ PHP Code: Do I win? ![]() Edit: Adam: The reason that you didn't win was because you should have used only one echo. You used fifty-two. Also, he blatantly stated that you must echo from a text file with all the characters on one line and no other delimiters. You just crudely echoed out every character. Try harder next time. ![]() Edit2: Could I have the $20? I need to renew a domain name and possibly transfer it, more than I need a new one.
__________________ #Dan |
| |
| | THREAD STARTER #9 (permalink) | ||||
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() |
![]() Check your private messages so we can get your reward settled. | ||||
| |
| | THREAD STARTER #13 (permalink) |
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() | And the official winner is Dan! :beer: Okay Dan has asked that if he only accepted half his reward, if we could get another contest going. So be on the look out for another challenge with another reward soon! Also feel free to post your ideas and we'll see what we can come up with. :webdev: |
| |
| | THREAD STARTER #17 (permalink) |
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() | Well there will be another one soon! As soon as we can come up with what it's going to be. I haven't been able to think up any more coding ones as of yet, so maybe it'll be logo contest or something next time. I'm trying to think up some coding ones though, so if you all have any ideas feel free to share them. |
| |
| | #18 (permalink) |
| NamePros Regular Join Date: Sep 2002 Location: Canada
Posts: 481
![]() | I have to convert my Visual Basic knowledge into php knowledge... Anything you throw at me i can manage to do in visual basic, and its been months since i've even opened a php file for editing... so i blow with php now. I'll need to get back into it once exams are over and i have my new system up and running
__________________ Sometimes I lay awake at night and I ask "Where have I gone wrong?" Then a little voice says "This is going to take more than one night" |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |