Skip to main content

Timeline for Ascii smiley face challenge

Current License: CC BY-SA 4.0

14 events
when toggle format what by license comment
Feb 3, 2021 at 14:07 comment added Kaddath @hanshenrik I tried many online testers, even some where you can upload a file, didn't work well (the code is probably retreived from the input field after the upload and not from original file). In the end, I edited with the short version by providing a link to a file, thanks for your help!
Feb 3, 2021 at 14:04 history edited Kaddath CC BY-SA 4.0
added 848 characters in body
Feb 3, 2021 at 12:25 comment added hanshenrik @Kaddath FWIW i tried uploading the code using libcurl (because unlike web browser copy&paste, libcurl is binary-safe), when you try uploading non-utf8-valid binary data to that website, you get this (NOT the code i uploaded): sandbox.onlinephpfunctions.com/code/… / and here's the code i used for the upload (note that if you want to attempt it yourself, you must update the CAPTCHA): sandbox.onlinephpfunctions.com/code/…
Feb 3, 2021 at 11:05 comment added Kaddath @hanshenrik Yep I see what you mean, I worked on it too, but couldn't make it work on online testers yet, and I don't know about the validity of answers that would be that hard to test (run locally with an hex editor). I can make it work with proper encoding ("SP\x80\x00-8\xe0\xe5B\xe5#\x8bc\x8aBe\xa0,\x98\x0a\xb8J\x84\x14\x16]\xb8d\x88\x92Cq#\x8c\x03\xb3\x0eI\x12]JK\x01\x09\xc0\x1d\x89\xdbg8\xc3\x02=\xdc") which is much longer, but as soon as I replace for example \x80 by it stops working..
Feb 3, 2021 at 8:06 history edited Kaddath CC BY-SA 4.0
added 16 characters in body
Feb 3, 2021 at 8:06 comment added Kaddath @Ausername you have to run it on PHP version < 8.0, it used to throw a notice, then a warning from 7.2, and only became a fatal error with 8.0. I'll add the precision
Feb 3, 2021 at 4:07 comment added emanresu A I get <br /> <b>Fatal error</b>: Uncaught Error: Undefined constant &quot;U1CAAC044OVC5SOLY4pCZaAsmAq4SoQUFl24ZIiSQ3EjjAOzDkkSXUpLAQnAHYnbZzjDAj3cAA&quot; in [...][...]:1 Stack trace: #0 {main} thrown in <b>[...][...]</b> on line <b>1</b><br /> when I run it. +2 bytes - I think the string needs quotes.
Feb 2, 2021 at 20:24 comment added hanshenrik (and i think its possible to shave off a few more bytes from the 72 solution with more efficient encoding of \\ but i haven't tried, not all \ needs to be escaped, just some of them =/ )
Feb 2, 2021 at 20:08 comment added hanshenrik shaved off a few more bytes (more efficient NULL-encoding), now it's 72 bytes: PD89Z3ppbmZsYXRlKCdTUIAALTjg5ULlI4tjikJloCyYCrhKhBQWXbhkiJJDcSOMA7MOSRJdSksBCcAdidtnOMMCPdwAJyk7
Feb 2, 2021 at 19:56 comment added hanshenrik it's possible to skip base64_decode and the base64 and insert the gzip binary directly in the source code using var_export() and HxD Hex Editor, but it's not possible using VSCode; here is the base64 of a version of your code in only 83 bytes, but warning, this code is NOT VSCode-compatible, but it is php-compatible: PD89Z3ppbmZsYXRlKCdTUIAnLiJcMCIuJy044OVC5SOLY4pCZaAsmAq4SoQUFl24ZIiSQ3EjjAOzDkkSXUpLAQnAHYnbZzjDAj3cJy4iXDAiKTs=
Feb 2, 2021 at 12:06 history edited Kaddath CC BY-SA 4.0
deleted 2 characters in body
Feb 2, 2021 at 11:59 history edited Kaddath CC BY-SA 4.0
deleted 2 characters in body
Feb 2, 2021 at 11:35 history edited Kaddath CC BY-SA 4.0
added 131 characters in body
Feb 2, 2021 at 11:29 history answered Kaddath CC BY-SA 4.0