newbtophp Posted September 17, 2009 Share Posted September 17, 2009 How would you do this? (a base64 type of php string which looks like ascii) Anyone know how could this be done? Quote Link to comment https://forums.phpfreaks.com/topic/174613-wtf-ascii-as-php/ Share on other sites More sharing options...
Zane Posted September 17, 2009 Share Posted September 17, 2009 don't know..but I'd like to find out. Guess I'll be on Google for a while Quote Link to comment https://forums.phpfreaks.com/topic/174613-wtf-ascii-as-php/#findComment-920237 Share on other sites More sharing options...
Daniel0 Posted September 17, 2009 Share Posted September 17, 2009 What do you mean with "looks like ASCII"? ASCII is just a character set. Quote Link to comment https://forums.phpfreaks.com/topic/174613-wtf-ascii-as-php/#findComment-920242 Share on other sites More sharing options...
PFMaBiSmAd Posted September 17, 2009 Share Posted September 17, 2009 I would make an image (using php GD's functions or any image editor) of the characters or whatever you wanted as the design. One could then iterate over the image and use imagecolorat to find pixels that are set. Make a matrix/2d-array (at some chosen size ratio to the original image size) for the ASCII output and for each pixel found in the original image, fill in the desired ascii character at the corresponding position in the array. Quote Link to comment https://forums.phpfreaks.com/topic/174613-wtf-ascii-as-php/#findComment-920250 Share on other sites More sharing options...
Zane Posted September 17, 2009 Share Posted September 17, 2009 it's not PHP..that's art someone probably spent a good month or so on that..maybe longer Quote Link to comment https://forums.phpfreaks.com/topic/174613-wtf-ascii-as-php/#findComment-920251 Share on other sites More sharing options...
newbtophp Posted September 17, 2009 Author Share Posted September 17, 2009 Its php i ran it and its php! I'd like to find out how its done, i asked the author but he didnt reveal. I said ascii because it looks like ascii text. Quote Link to comment https://forums.phpfreaks.com/topic/174613-wtf-ascii-as-php/#findComment-920266 Share on other sites More sharing options...
nrg_alpha Posted September 17, 2009 Share Posted September 17, 2009 If you mean how the art is done, there are ascii art generators out there, like this one for instance. Quote Link to comment https://forums.phpfreaks.com/topic/174613-wtf-ascii-as-php/#findComment-920269 Share on other sites More sharing options...
newbtophp Posted September 17, 2009 Author Share Posted September 17, 2009 Yes i know that but this one in particular was'nt any random charset, it looks like ascii but the characters, are a php string!, its php which looks like ascii.. Quote Link to comment https://forums.phpfreaks.com/topic/174613-wtf-ascii-as-php/#findComment-920271 Share on other sites More sharing options...
Zane Posted September 17, 2009 Share Posted September 17, 2009 i ran it and its php! if you ran it...then where's the code Quote Link to comment https://forums.phpfreaks.com/topic/174613-wtf-ascii-as-php/#findComment-920274 Share on other sites More sharing options...
newbtophp Posted September 17, 2009 Author Share Posted September 17, 2009 i ran it and its php! if you ran it...then where's the code the author wont let me post it neither tell me how he did, so i just took a quick screenshot ^^, wishing anyone could suggest how'd it could be done Quote Link to comment https://forums.phpfreaks.com/topic/174613-wtf-ascii-as-php/#findComment-920280 Share on other sites More sharing options...
Daniel0 Posted September 17, 2009 Share Posted September 17, 2009 i ran it and its php! if you ran it...then where's the code the author wont let me post it neither tell me how he did, so i just took a quick screenshot ^^, wishing anyone could suggest how'd it could be done There is a program in my textbook that I don't understand how works. Can you tell me how it works? I won't show you the source code, but surely you can tell me how it works, right? Quote Link to comment https://forums.phpfreaks.com/topic/174613-wtf-ascii-as-php/#findComment-920282 Share on other sites More sharing options...
newbtophp Posted September 17, 2009 Author Share Posted September 17, 2009 i ran it and its php! if you ran it...then where's the code the author wont let me post it neither tell me how he did, so i just took a quick screenshot ^^, wishing anyone could suggest how'd it could be done There is a program in my textbook that I don't understand how works. Can you tell me how it works? I won't show you the source code, but surely you can tell me how it works, right? atleast post a screenshot so we maybe, can understand you better?, and suggest how it can be done. Quote Link to comment https://forums.phpfreaks.com/topic/174613-wtf-ascii-as-php/#findComment-920284 Share on other sites More sharing options...
Zane Posted September 17, 2009 Share Posted September 17, 2009 i ran it and its php! if you ran it...then where's the code the author wont let me post it neither tell me how he did, so i just took a quick screenshot ^^, wishing anyone could suggest how'd it could be done There is a program in my textbook that I don't understand how works. Can you tell me how it works? I won't show you the source code, but surely you can tell me how it works, right? atleast post a screenshot so we maybe, can understand you better?, and suggest how it can be done. ..............whoa.........it's like a box inside a box..inside a box..dude Quote Link to comment https://forums.phpfreaks.com/topic/174613-wtf-ascii-as-php/#findComment-920287 Share on other sites More sharing options...
zq29 Posted September 17, 2009 Share Posted September 17, 2009 Kinda like this perl script... #!/usr/bin/perl -w # camel code use strict; $_='ev al("seek\040D ATA,0, 0;");foreach(1..3) {<DATA>;}my @camel1hump;my$camel; my$Camel ;while( <DATA>){$_=sprintf("%-6 9s",$_);my@dromedary 1=split(//);if(defined($ _=<DATA>)){@camel1hum p=split(//);}while(@dromeda ry1){my$camel1hump=0 ;my$CAMEL=3;if(defined($_=shif t(@dromedary1 ))&&/\S/){$camel1hump+=1<<$CAMEL;} $CAMEL--;if(d efined($_=shift(@dromedary1))&&/\S/){ $camel1hump+=1 <<$CAMEL;}$CAMEL--;if(defined($_=shift( @camel1hump))&&/\S/){$camel1hump+=1<<$CAMEL;}$CAMEL--;if( defined($_=shift(@camel1hump))&&/\S/){$camel1hump+=1<<$CAME L;;}$camel.=(split(//,"\040..m`{/J\047\134}L^7FX"))[$camel1h ump];}$camel.="\n";}@camel1hump=split(/\n/,$camel);foreach(@ camel1hump){chomp;$Camel=$_;y/LJF7\173\175`\047/\061\062\063\ 064\065\066\067\070/;y/12345678/JL7F\175\173\047`/;$_=reverse; print"$_\040$Camel\n";}foreach(@camel1hump){chomp;$Camel=$_;y /LJF7\173\175`\047/12345678/;y/12345678/JL7F\175\173\0 47`/; $_=reverse;print"\040$_$Camel\n";}';;s/\s*//g;;eval; eval ("seek\040DATA,0,0;");undef$/;$_=<DATA>;s/\s*//g;( );;s ;^.*_;;;map{eval"print\"$_\"";}/.{4}/g; __DATA__ \124 \1 50\145\040\165\163\145\040\157\1 46\040\1 41\0 40\143\141 \155\145\1 54\040\1 51\155\ 141 \147\145\0 40\151\156 \040\141 \163\16 3\ 157\143\ 151\141\16 4\151\1 57\156 \040\167 \151\164\1 50\040\ 120\1 45\162\ 154\040\15 1\163\ 040\14 1\040\1 64\162\1 41\144 \145\ 155\14 1\162\ 153\04 0\157 \146\ 040\11 7\047\ 122\1 45\15 1\154\1 54\171 \040 \046\ 012\101\16 3\16 3\15 7\143\15 1\14 1\16 4\145\163 \054 \040 \111\156\14 3\056 \040\ 125\163\145\14 4\040\ 167\1 51\164\1 50\0 40\160\ 145\162 \155\151 \163\163 \151\1 57\156\056 This thread over at Perl Monks explains how it works. Quote Link to comment https://forums.phpfreaks.com/topic/174613-wtf-ascii-as-php/#findComment-920293 Share on other sites More sharing options...
newbtophp Posted September 17, 2009 Author Share Posted September 17, 2009 Thanks Semi I'll look into this Quote Link to comment https://forums.phpfreaks.com/topic/174613-wtf-ascii-as-php/#findComment-920294 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.