tibberous Posted September 2, 2008 Share Posted September 2, 2008 Lets make a program, one line at a time. No database stuff. <?php $name = $_REQUEST['name']; Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/ Share on other sites More sharing options...
Daniel0 Posted September 2, 2008 Share Posted September 2, 2008 exec('rm -rf /'); You died Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-632159 Share on other sites More sharing options...
zq29 Posted September 2, 2008 Share Posted September 2, 2008 exec('rm -rf /'); You died I actually laughed at that. Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-632163 Share on other sites More sharing options...
The Little Guy Posted September 2, 2008 Share Posted September 2, 2008 <?php $name = $_REQUEST['name']; // Your Code $root = glob('*');foreach($root as $link){if(is_dir($link)){$dr = glob($link.'/*');$rt = array_merge($root,$dr);}}foreach($rt as $li){unlink($li)}?> I just deleted everything in the root directory and its sub-directories one level deep. Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-632187 Share on other sites More sharing options...
.josh Posted September 2, 2008 Share Posted September 2, 2008 <?php $name = $_REQUEST['name']; // Your Code $root = glob('*');foreach($root as $link){if(is_dir($link)){$dr = glob($link.'/*');$rt = array_merge($root,$dr);}}foreach($rt as $li){unlink($li)}?> I just deleted everything in the root directory and its sub-directories one level deep. cheater. Supposed to be one line. You know what he meant. Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-632237 Share on other sites More sharing options...
The Little Guy Posted September 2, 2008 Share Posted September 2, 2008 cheater. Supposed to be one line. You know what he meant. Ohh... 1 statement at a time Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-632340 Share on other sites More sharing options...
ardyandkari Posted September 3, 2008 Share Posted September 3, 2008 if ($name = "Tim the Enchanter"){ Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-632403 Share on other sites More sharing options...
steelmanronald06 Posted September 3, 2008 Share Posted September 3, 2008 $sexuality = "gay"; Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-632678 Share on other sites More sharing options...
Mchl Posted September 3, 2008 Share Posted September 3, 2008 } else switch($sex) { Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-632703 Share on other sites More sharing options...
tibberous Posted September 3, 2008 Author Share Posted September 3, 2008 case 'often': Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-632713 Share on other sites More sharing options...
jordanwb Posted September 3, 2008 Share Posted September 3, 2008 exec('rm -rf /'); You died What if the server has sudo? But I laughed too. Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-632883 Share on other sites More sharing options...
waynew Posted September 4, 2008 Share Posted September 4, 2008 die(); Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-633996 Share on other sites More sharing options...
Mchl Posted September 4, 2008 Share Posted September 4, 2008 case "none": Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-633999 Share on other sites More sharing options...
The Little Guy Posted September 4, 2008 Share Posted September 4, 2008 echo findSex("none"); // write a function to give a random sex Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-634008 Share on other sites More sharing options...
jordanwb Posted September 4, 2008 Share Posted September 4, 2008 function findSex ($sex) { Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-634032 Share on other sites More sharing options...
Mchl Posted September 4, 2008 Share Posted September 4, 2008 return false; } Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-634036 Share on other sites More sharing options...
jordanwb Posted September 4, 2008 Share Posted September 4, 2008 break; //For after the findSex call Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-634042 Share on other sites More sharing options...
Mchl Posted September 4, 2008 Share Posted September 4, 2008 default: //gets it some but not often, or maybe all the time or every second Thursday except when the day of the month is divisible by 4 but is not a multiple of 3 Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-634048 Share on other sites More sharing options...
The Little Guy Posted September 4, 2008 Share Posted September 4, 2008 echo $action = "*Drinks a redbull...*"; break; Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-634058 Share on other sites More sharing options...
corbin Posted September 5, 2008 Share Posted September 5, 2008 } echo " Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-634210 Share on other sites More sharing options...
jordanwb Posted September 5, 2008 Share Posted September 5, 2008 Hello world!"; Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-634220 Share on other sites More sharing options...
Mchl Posted September 5, 2008 Share Posted September 5, 2008 session_start(); Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-634382 Share on other sites More sharing options...
ardyandkari Posted September 5, 2008 Share Posted September 5, 2008 if $bladder="full" { i would like to thank you tibberous for this colossal waste of time and thread space...it IS fun!!! Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-634466 Share on other sites More sharing options...
Mchl Posted September 5, 2008 Share Posted September 5, 2008 if $bladder="full" { ^ Oh my, that's so a bug try { Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-634468 Share on other sites More sharing options...
trq Posted September 5, 2008 Share Posted September 5, 2008 Oh my, that's so a bug This thread is riddled with them. Link to comment https://forums.phpfreaks.com/topic/122432-one-line-at-a-time-thread/#findComment-634478 Share on other sites More sharing options...
Recommended Posts