| PHP Discussion of PHP scripts belongs here. | Php Challenge 2  Php Challenge 2 | | | | | Member
Posts: 265 Join Date: May 2008 Rep Power: 0 | Php Challenge 2 -
Tuesday, July 7th, 2009
A pretty easy one not too hard. <?php
function stribet($inputstr, $delimiterLeft, $delimiterRight)s { $posLeft = stripos($inputstr, $delimiterLeft) + strlen($delimiterLeft); $posRight = stripos($inputstr, $delimiterRight, $posLeft); return substr($inputstr, $posLeft, $posRight - $posLeft) }
$MyString = "dnkjsdhi4have4solved4the4puzzlejdkndsadsasdwqwio23912991233";
$doGet = ucwords($rawr) $rawr = str_place("4",$blanket,$MyString) $blanket = $rawr; $wristwatch = " "; echo $wristwatch; die(); ?> 1. You can only use the Variables and Functions in PHP and in the Script.
2. You can Add only 1 Variable.
3. Make it echo "I Have Solved The Puzzle" must be cAsE sEnSiTiVe
4. You cant "I Have Solved The Puzzle" anywhere else in the script.
5. You can move the lines around.
Last edited by Shadow; Tuesday, July 7th, 2009 at 04:18pm.
| |
| |  | | | | | Member
Posts: 281 Join Date: Jul 2008 Rep Power: 0 | 
Tuesday, July 7th, 2009
Is this it?
<?php
function stribet($inputstr, $delimiterLeft, $delimiterRight)s { $posLeft = stripos($inputstr, $delimiterLeft) + strlen($delimiterLeft); $posRight = stripos($inputstr, $delimiterRight, $posLeft); return substr($inputstr, $posLeft, $posRight - $posLeft) }
$MyString = "dnkjsdhi4have4solved4the4puzzlejdkndsadsasdwqwio23912991233";
$doGet = ucwords($rawr) $rawr = str_place("4",$blanket,$MyString) $blanket = $rawr; $wristwatch = "I Have Solved The Puzzle! "; echo $wristwatch; die(); ?> LARGE RED TEXT IS SUPER COOL NOW | |
| |  | | | | | Super Moderator
Posts: 2,651 Join Date: Jan 2008 Location: Wisconsin Age: 19 Rep Power: 25 | 
Tuesday, July 7th, 2009
Quote:
Originally Posted by Payton Is this it?
<?php function stribet($inputstr, $delimiterLeft, $delimiterRight)s {
$posLeft = stripos($inputstr, $delimiterLeft) + strlen($delimiterLeft);
$posRight = stripos($inputstr, $delimiterRight, $posLeft);
return substr($inputstr, $posLeft, $posRight - $posLeft)
}
$MyString = "dnkjsdhi4have4solved4the4puzzlejdkndsadsasdwqwio23912991233";
$doGet = ucwords($rawr)
$rawr = str_place("4",$blanket,$MyString)
$blanket = $rawr;
$wristwatch = "I Have Solved The Puzzle! ";
echo $wristwatch;
die();
?> | Read rule 4, you can't do that. I'm getting close to solving this one. It's hard. | |
| |  | | | | | Member
Posts: 281 Join Date: Jul 2008 Rep Power: 0 | 
Tuesday, July 7th, 2009
How about making $wristwatch echo a hash of the sentence?
<?php
function stribet($inputstr, $delimiterLeft, $delimiterRight)s { $posLeft = stripos($inputstr, $delimiterLeft) + strlen($delimiterLeft); $posRight = stripos($inputstr, $delimiterRight, $posLeft); return substr($inputstr, $posLeft, $posRight - $posLeft) }
$MyString = "dnkjsdhi4have4solved4the4puzzlejdkndsadsasdwqwio23912991233";
$doGet = ucwords($rawr) $rawr = str_place("4",$blanket,$MyString) $blanket = $rawr; $wristwatch = "e6b7b4bdc4e3d2144bacfd706d9f414d "; echo $wristwatch; die(); ?> LARGE RED TEXT IS SUPER COOL NOW | |
| |  | | | | | Member
Posts: 61 Join Date: Mar 2009 Rep Power: 3 | 
Tuesday, July 7th, 2009
That was easy, i hope you release more soon. Challenging but fun.
<?php
$MyString = "dnkjsdhi4have4solved4the4puzzlejdkndsadsasdwqwio23912991233";
$doGet = " "; $From = "4"; $blanket = "i4have4solved4the4puzzle"; $rawr = str_replace($From, $doGet, $blanket); $rawr = ucwords($rawr); $wristwatch = "$rawr"; echo $wristwatch; sleep(9999);
?> 1. You can only use the Variables and Functions in PHP and in the Script. <-I Used PHP functions
2. You can Add only 1 Variable. <- $From
3. Make it echo "I Have Solved The Puzzle" must be cAsE sEnSiTiVe <-Done
4. You cant "I Have Solved The Puzzle" anywhere else in the script. <- i4have4solved4the4puzzle <- Thats random characters to me.
5. You can move the lines around. <- Done
Last edited by Hu_; Tuesday, July 7th, 2009 at 07:15pm.
| |
| |  | | | | | Member
Posts: 265 Join Date: May 2008 Rep Power: 0 | 
Wednesday, July 8th, 2009
Quote:
Originally Posted by Hu Hu That was easy, i hope you release more soon. Challenging but fun.
<?php
$MyString = "dnkjsdhi4have4solved4the4puzzlejdkndsadsasdwqwio23912991233";
$doGet = " "; $From = "4"; $blanket = "i4have4solved4the4puzzle"; $rawr = str_replace($From, $doGet, $blanket); $rawr = ucwords($rawr); $wristwatch = "$rawr"; echo $wristwatch; sleep(9999);
?> 1. You can only use the Variables and Functions in PHP and in the Script. <-I Used PHP functions
2. You can Add only 1 Variable. <- $From
3. Make it echo "I Have Solved The Puzzle" must be cAsE sEnSiTiVe <-Done
4. You cant "I Have Solved The Puzzle" anywhere else in the script. <- i4have4solved4the4puzzle <- Thats random characters to me.
5. You can move the lines around. <- Done | YAY someone figured it out ;D | |
| |  | | | | | Member
Posts: 138 Join Date: Jan 2009 Rep Power: 0 | 
Wednesday, July 8th, 2009
Quote:
Originally Posted by Shadow YAY someone figured it out ;D | Alternative answer: (I think you would have had a rule disallowing the string i4have4solved4the4puzzle anywhere else in the script than $MyString, If you had thought of Hu Hus answer?) <?php
function stribet($inputstr, $delimiterLeft, $delimiterRight) { $posLeft = stripos($inputstr, $delimiterLeft) + strlen($delimiterLeft); $posRight = stripos($inputstr, $delimiterRight, $posLeft); return substr($inputstr, $posLeft, $posRight - $posLeft); }
$MyString = "dnkjsdhi4have4solved4the4puzzlejdkndsadsasdwqwio23912991233";
$doGet = " "; $rawr = str_replace("4", $doGet,$MyString); $blanket = stribet($rawr, "nkjsdh", "jdkndsadsasdwqwio23912991233"); $wristwatch = ucwords($blanket); echo $wristwatch; die(); ?> | |
| |  | | | | | Member
Posts: 61 Join Date: Mar 2009 Rep Power: 3 | 
Wednesday, July 8th, 2009
Quote:
Originally Posted by Charlie_ Alternative answer: (I think you would have had a rule disallowing the string i4have4solved4the4puzzle anywhere else in the script than $MyString, If you had thought of Hu Hus answer?) | Code: if (i4have4solved4the4puzzle != I Have Solved The Puzzle){
cout << "Hu Was right, but on the otherhand charles's script was was to.";
}
else
{
cout << "Well it isnt the same is it? Anyway Charles + Hu are the winners";
}
| |
| |  | | | | | Member
Posts: 138 Join Date: Jan 2009 Rep Power: 0 | 
Thursday, July 9th, 2009
Quote:
Originally Posted by Hu Hu Code: if (i4have4solved4the4puzzle != I Have Solved The Puzzle){
cout << "Hu Was right, but on the otherhand charles's script was was to.";
}
else
{
cout << "Well it isnt the same is it? Anyway Charles + Hu are the winners";
}
| Syntax Error: Automatically corrected to: Code: if ("i4have4solved4the4puzzle" != "I Have Solved The Puzzle"){
cout << "Hu Was right, but on the otherhand charles's script was was to.";
}
else
{
cout << "Well it isnt the same is it? Anyway Charles + Hu are the winners";
}
by the Charlie_ C++ Compiler | |
| |  |
Lower Navigation
| | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | |
Similar Threads | | Thread | Thread Starter | Forum | Replies | Last Post | | php challenge | Billybob1234 | PHP | 15 | Tuesday, July 7th, 2009 07:28pm | | [ClubPenguin.com] Wig Challenge | RSSbot | Club Penguin Blogs | 0 | Wednesday, April 29th, 2009 02:12pm | | challenge meh! | darthmaul | General Chat | 2 | Sunday, March 22nd, 2009 06:46pm | | Impossible arrow tap challenge. | scar 444 | General Chat | 8 | Sunday, October 5th, 2008 12:06pm | | Challenge - make your trainer compatible with Ubuntu | Vinni3 | Macroing & Cheating | 5 | Monday, June 9th, 2008 05:42pm |
Powered by vBulletin® Version 3.8.3 Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
vBulletin Skin developed by: vBStyles.com |