|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Super Ninja Monkey
![]() ![]() ![]() ![]() ![]() Join Date: Dec 2001
Location: Sioux City, Iowa
Posts: 693
|
PHP Tennis: Free-for-all
Ok you can find the complete rules here. Make sure you read them carefully. If you break a rule you lose, end of story.
![]() ok heres my serve: PHP Code:
The Max Change is 7 lines. The Red Line is 6 lines. So you can't go above 29 lines or below 17 lines. You have 24 hours to make a return from the time of the last one. Have fun! ![]()
__________________
Travis Watkins - Hyperactive Coder My Blog: Realist Anew Projects: Alacarte - Gnome Menu Editor |
|
|
|
|
|
#2 |
|
Super Ninja Monkey
![]() ![]() ![]() ![]() ![]() Join Date: Dec 2001
Location: Sioux City, Iowa
Posts: 693
|
No one came in here and added security functions or a nice user interface yet? *hint*
You people are ignoring me aren't you! ![]()
__________________
Travis Watkins - Hyperactive Coder My Blog: Realist Anew Projects: Alacarte - Gnome Menu Editor |
|
|
|
|
|
#3 |
|
SitePoint Wizard
![]() Join Date: Jan 2002
Location: Canada
Posts: 6,399
|
24 hours allows me to post.
![]() PHP Code:
__________________
- Nathan |
|
|
|
|
|
#4 |
|
SitePoint Evangelist
![]() ![]() ![]() ![]() Join Date: Oct 2001
Posts: 592
|
How about dropping all those useless variables?
PHP Code:
|
|
|
|
|
|
#5 |
|
SitePoint Wizard
![]() Join Date: Jan 2002
Location: Canada
Posts: 6,399
|
That doesn't appear to do the original function's idea, but it could just be me...
Wasn't the original one supposed to give the source of the file in $source? Like: PHP Code:
Thanks, ~someonewhois
__________________
- Nathan |
|
|
|
|
|
#7 |
|
SitePoint Evangelist
![]() ![]() ![]() ![]() Join Date: Oct 2001
Posts: 592
|
What exactly do you mean? Have you tried it? This code reads the file in $source and prints it as HTML, syntax highlighted. I thought that was the idea?
(For clarity: it works on PHP 4.2.1, because that is what I tried it on.) And by the way: I just found out that this is also possible: PHP Code:
|
|
|
|
|
|
#8 | |
|
SitePoint Wizard
![]() Join Date: Jan 2002
Location: Canada
Posts: 6,399
|
PHP Code:
ANd this is what I did last time: PHP Code:
Quote:
Thanks, ~someonewhois
__________________
- Nathan |
|
|
|
|
|
|
#9 |
|
SitePoint Evangelist
![]() ![]() ![]() ![]() Join Date: Oct 2001
Posts: 592
|
What version of PHP are you using? Because on my machine(s) with PHP 4.2.1, it works great...
But I guess I'm out anyway, with that last post under the red line. Greetings Vincent |
|
|
|
|
|
#10 |
|
SitePoint Zealot
![]() ![]() Join Date: Jan 2002
Posts: 167
|
Comments dont count as lines, if you read the rules
so the start part was wrong. its 17 lines, but we will keep redline as 6, so Min: 11 Max: 23PHP Code:
I was counting tags, so that is 11, wether it works or not im not sure, as I cant test it from here ![]() that was edited from voostind's post btw. and the edit is too add this line ![]() |
|
|
|
|
|
#11 |
|
SitePoint Wizard
![]() Join Date: Jan 2002
Location: Canada
Posts: 6,399
|
PHP Code:
![]() Wilco loses, voostind wins, as Voostind's now works. ![]() Thanks, ~someonewhois ![]()
__________________
- Nathan |
|
|
|
|
|
#12 |
|
SitePoint Wizard
![]() Join Date: Jan 2002
Location: Canada
Posts: 6,399
|
Voostind, when you serve, please don't choose a source viewer, as we have had this one and t his one:
http://sitepointforums.com/showthrea...threadid=67541 That one was a lot more advanced than the one we juts made.. ![]() http://sowibb.ibboards.com/phpedit.php is the example, just type "phpedit.php" for an example. It uses a form and it gives line numbers. ![]() Thanks, ~someonewhois
__________________
- Nathan |
|
|
|
|
|
#13 |
|
Super Ninja Monkey
![]() ![]() ![]() ![]() ![]() Join Date: Dec 2001
Location: Sioux City, Iowa
Posts: 693
|
Well this certainly picked up! Can't wait to see what Vincent will use for his. I hope its a good one!
![]()
__________________
Travis Watkins - Hyperactive Coder My Blog: Realist Anew Projects: Alacarte - Gnome Menu Editor |
|
|
|
|
|
#15 |
|
SitePoint Zealot
![]() ![]() Join Date: Jan 2002
Posts: 167
|
then i think you will be dissapointed Some1
![]() and damn, im sure that was 11 should have just halved the long line did anyone test it to see if it worked? ![]() |
|
|
|
|
|
#16 |
|
SitePoint Evangelist
![]() ![]() ![]() ![]() Join Date: Oct 2001
Posts: 592
|
Ok, so here is my serve:
PHP Code:
PHP Code:
![]() Vincent |
|
|
|
|
|
#17 |
|
SitePoint Wizard
![]() ![]() Join Date: Nov 2000
Location: Switzerland
Posts: 2,898
|
Just butting in for a moment with a suggestion for another "high risk" match for a later date, using PHP's custom error handlers: http://www.php.net/manual/en/functio...or-handler.php
|
|
|
|
|
|
#19 |
|
SitePoint Wizard
![]() Join Date: Jan 2002
Location: Canada
Posts: 6,399
|
Just to keep ti going, may as well...
PHP Code:
If HarryF would so kindly update the rules, as you CAN have more than one semi collen if it's in a for loop as far as I'm concerned...
__________________
- Nathan |
|
|
|
|
|
#20 |
|
SitePoint Enthusiast
![]() Join Date: Jul 2002
Location: Cambs, UK
Posts: 59
|
Colour-coded. Blue for folders, green for files.
PHP Code:
__________________
:: David Speake :: EvilWalrus.com Content Dev. :: david@evilwalrus.com :: david.bigbluebang.com |
|
|
|
|
|
#21 |
|
SitePoint Enthusiast
![]() Join Date: Jul 2002
Location: Cambs, UK
Posts: 59
|
Crap that breaks the characters-per-line limit.
__________________
:: David Speake :: EvilWalrus.com Content Dev. :: david@evilwalrus.com :: david.bigbluebang.com |
|
|
|
|
|
#23 |
|
SitePoint Evangelist
![]() ![]() ![]() ![]() Join Date: Oct 2001
Posts: 592
|
Well, hex certainly lost, and this game should be over, because those are the rules.
On the other hand, I don't think someonewhois won either, because the only change he made to the original script was to add '<?php' in front of it. Lacking the closing '?>', that probably won't run... Vincent |
|
|
|
|
|
#24 |
|
SitePoint Wizard
![]() Join Date: Jan 2002
Location: Canada
Posts: 6,399
|
No, lcaking the <?php won't run, but on most computers you don't need a ?>...
The front one is more important, and I can demostrate that it works without ?>... but doesn't work without <?php.. Thanks, ~someonewhois
__________________
- Nathan |
|
|
|
|
|
#25 |
|
Super Ninja Monkey
![]() ![]() ![]() ![]() ![]() Join Date: Dec 2001
Location: Sioux City, Iowa
Posts: 693
|
*bump*
someonewhois, just start a new one. no more fighting! ![]()
__________________
Travis Watkins - Hyperactive Coder My Blog: Realist Anew Projects: Alacarte - Gnome Menu Editor |
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 21:10.

















Linear Mode
