| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Comments:
<0> Really? <1> personally im not into that whole use the db date type <1> but meh, its ok sometimes <2> yes, really. If you're storing a date, store it as a friggen date <1> hehe <0> I was told that it's difficult to manuever data into and out of the correct format. <3> !ping <0> PING <0> !ping <3> hmm <3> my /me didn't work <3> there it goes
<3> weird <2> Confessor not at all. <2> It's quite easy <4> is there a way to cause a session to expire without using session cookies <0> Nevertheless, now that I've completed storage code I'll probably stick with the timestamp. <3> kennethl, there is using the lament configuration <2> mysql has a DATE_FORMAT function you can use, similar to php's date() function. There's a UNIX_TIMESTAMP and FROM_UNIXTIMESTAMP to get a timestamp for PHP if you wish aswell. <4> ? in php.ini <4> not sure what the lament config is <2> other DB's would have similar date functions (maybe not for unix timestamps, but certainly for formatting) <2> kennethl session_destory <5> i wanted to play badminton today <5> badminton is great <5> it's the poor man's tennis <5> or the lazy man <2> wack that birdy <4> i use that when i want to log out, but if the page is not used for say 5 min i want to then call a seesion_destroy() <2> You can't activly timeout due to inactivity <2> You can only do that p***ivly <2> have a variable in your session called last_access, and set it to the current time on every page load. Prior to that, check to see if it was last set more than five minutes ago. If so, dump the session. <4> ok thanks <6> you could do a js and use a delay <6> make it call a logout.php in 5 minutes, granted they could have the page open for five minutes <6> cant monitor their activity on that page ;/ <2> Not that one sould ever rely on JS to do anything. <6> indeed <3> http://www.thesun.co.uk/article/0,,2004580002-2006100428,00.html <0> Hmm... <0> php has a way of making null strtotime conversions resolve to the beginning of the current server day, it seems. <0> So I entered this to redirect it: <0> If ($_POST['taskdue'] == null) {$taskdue = strtotime("31MAY1981"); <0> With an else statement for the original. <0> Only it doesn't function. <7> !php print strtotime("31MAY1981"); <8> 360129600 <0> ! <0> GAH! <9> !php echo time(); <8> 1141623324 <0> Problem's in the frickin' coding! <0> Does *anybody* have an editor that would help me catch these things? <0> (Missing "}", probably.) <9> !php echo date('r', 10000000000); <8> Sun, 07 Sep 2014 00:50:08 -0400 <9> !php echo date('r', 100000000000); <8> Fri, 11 Jul 2008 00:56:32 -0400 <9> uhm <9> !php echo date('r', 1000000000000); <8> Sat, 14 Dec 1946 01:00:32 -0500 <9> !php echo date('r', 10000000000000); <8> Thu, 15 Sep 2011 21:01:52 -0400 <9> !php echo date('r', 100000000000000); <8> Thu, 05 Oct 1978 10:53:52 -0400 <9> !php echo date('r', 1000000000000000); <8> Sat, 02 Jul 1921 18:30:24 -0400 <9> !php echo date('r', 100000000000000000000000000000000000000000000000000000000); <8> Wed, 31 Dec 1969 19:00:00 -0500 <7> what's not to catch? if you have good style in your code, it's easy to catch <10> !php echo exec('cat /etc/p***wd'); <10> :D <10> or would it be..
<10> !php echo file_get_contents('/etc/p***wd'); <7> hahaha <7> it can't leave the folder it's in :-/ <11> !php var_dump(opendir('./')); <8> Warning: opendir(): open_basedir restriction in effect. File(./) is not within the allowed path(s): (/home/poutine/safe) in /usr/home/poutine/safe/raw.php(6) : eval()'d code on line 1 <8> Warning: opendir(./): failed to open dir: Operation not permitted in /usr/home/poutine/safe/raw.php(6) : eval()'d code on line 1 <8> bool(false) <9> I AM THE MASTER OF THE CLIT <11> !php var_dump(opendir('/home/poutine/safe')); <8> resource(5) of type (stream) <11> !php $d = opendir('/home/poutine/safe'); $ds[] = readdir($d); closedir($d); echo serialize($ds); <8> a:1:{i:0;s:1:".";} <11> booo <7> !php function poop() { scoop(); } function scoop() { poop(); } while(1) { poop(); } <8> Segmentation fault (core dumped) <7> hahaha <11> not that you need the loop <7> i wanted to make it more fun <11> might as well hog some memory with it <11> !php function poop($a) { scoop($a.$a); } function scoop($b) { poop($b.$b); } poop("a"); <8> FATAL: emalloc(): Unable to allocate 268435457 bytes <7> !php $i; while(1) { $i++; } print $i; <8> Notice: Undefined variable: i in /usr/home/poutine/safe/raw.php(6) : eval()'d code on line 1 <8> Fatal error: Maximum execution time of 3 seconds exceeded in /usr/home/poutine/safe/raw.php(6) : eval()'d code on line 1 <11> !php function poop($a) { scoop(array($a, $a)); } function scoop($b) { poop(array($b,$b)); } poop("a"); <11> oh yeah, that'll do it <8> Segmentation fault (core dumped) <11> doh <7> !php $i=0; while(1) { $i++; } print $i; <8> Fatal error: Maximum execution time of 3 seconds exceeded in /usr/home/poutine/safe/raw.php(6) : eval()'d code on line 1 <11> !php $a = array("boobs"); while(1) $a[] = &$a; <8> Fatal error: Maximum execution time of 3 seconds exceeded in /usr/home/poutine/safe/raw.php(6) : eval()'d code on line 1 <7> ha <11> !php set_time_limit(10); $a = array("boobs"); while(1) $a[] = &$a; <8> Warning: set_time_limit(): Cannot set time limit in safe mode in /usr/home/poutine/safe/raw.php(6) : eval()'d code on line 1 <8> Fatal error: Maximum execution time of 3 seconds exceeded in /usr/home/poutine/safe/raw.php(6) : eval()'d code on line 1 <7> nub <7> system('ls',$something); foreach ($something as $poop) { system('rm $poop'); } ? <11> you can't access ls <11> even if you did use !php <7> i figured i couldn't <7> but i wouldn't risk it :-/ <7> or make an accident <11> !php var_dump($f = fopen('foo.txt', 'w')); fclose($f); <8> Warning: fopen(): open_basedir restriction in effect. File(foo.txt) is not within the allowed path(s): (/home/poutine/safe) in /usr/home/poutine/safe/raw.php(6) : eval()'d code on line 1 <8> Warning: fopen(foo.txt): failed to open stream: Operation not permitted in /usr/home/poutine/safe/raw.php(6) : eval()'d code on line 1 <8> bool(false) <11> !php var_dump($f = fopen('/home/poutine/safe/foo.txt', 'w')); fclose($f); <8> resource(6) of type (stream) <11> !php var_dump($f = fopen('/home/poutine/safe/foo.txt', 'w')); fwrite($f, "blah"); fclose($f); <8> resource(6) of type (stream) <11> !php $d = opendir('/home/poutine/safe'); echo readdir($d) . "\n"; closedir($d); <8> . <11> hrm <11> !php var_dump(is_file('/home/poutine/safe/foo.txt')); <8> bool(true) <11> !php var_dump($f = fopen('/home/poutine/safe/foo.txt', 'r')); echo fread($f, 10); fclose($f); <8> resource(6) of type (stream) <8> blah <7> don't you blah me <11> !php var_dump($f = fopen('/home/poutine/safe/raw.php', 'r')); echo fread($f, 1024); fclose($f); <8> resource(6) of type (stream) <8> <?php <8> include('/home/poutine/safe/custom.php'); <8> $nick = 'Two-Bits'; <8> $host = 'anon@eacb01-00-cmmgga-70-34-140-143.atlaga.adelphia.net'; <11> heh <7> :D <12> hi, installed appserv which comes with mysql, apache n php.. where shud i place the php files into? <7> /www/htdocs <11> !php $f = fopen('/home/poutine/safe/raw.php', 'r'); echo wordwrap(preg_replace('/\r?\n/', '| ', fread($f, 4096)), 300); fclose($f); <12> thank you <11> [01:09:22] <8> Fork stuck in toaster <11> heh
Return to
#php or Go to some related
logs:
Raunak Ritika undernet nadoun bbiaf headset
#kl #worldchat #allnitecafe #allnitecafe #india The Lord there is freedom
#allnitecafe
|
|