Anti-Moronic Posted January 10, 2011 Share Posted January 10, 2011 How do you echo 1+1 in php? Quote Link to comment https://forums.phpfreaks.com/topic/223931-need-help-urgently-pleaseimmediately/ Share on other sites More sharing options...
Pikachu2000 Posted January 10, 2011 Share Posted January 10, 2011 ^^^ I'll have what he's having . . . Quote Link to comment https://forums.phpfreaks.com/topic/223931-need-help-urgently-pleaseimmediately/#findComment-1157257 Share on other sites More sharing options...
Philip Posted January 10, 2011 Share Posted January 10, 2011 ^^^ I'll have what he's having . . . +1 me too! Quote Link to comment https://forums.phpfreaks.com/topic/223931-need-help-urgently-pleaseimmediately/#findComment-1157266 Share on other sites More sharing options...
dreamwest Posted January 10, 2011 Share Posted January 10, 2011 Cool title! Quote Link to comment https://forums.phpfreaks.com/topic/223931-need-help-urgently-pleaseimmediately/#findComment-1157286 Share on other sites More sharing options...
Anti-Moronic Posted January 10, 2011 Author Share Posted January 10, 2011 Sorry, I should clarify. I actually mean how to echo the string '1+1' in php? Quote Link to comment https://forums.phpfreaks.com/topic/223931-need-help-urgently-pleaseimmediately/#findComment-1157349 Share on other sites More sharing options...
trq Posted January 10, 2011 Share Posted January 10, 2011 Sorry, I should clarify. I actually mean how to echo the string '1+1' in php? Um.... echo '1+1'; Quote Link to comment https://forums.phpfreaks.com/topic/223931-need-help-urgently-pleaseimmediately/#findComment-1157354 Share on other sites More sharing options...
.josh Posted January 10, 2011 Share Posted January 10, 2011 Did a client ask for it and you have absolutely no idea how to do it but you agreed to do it ASAP? Quote Link to comment https://forums.phpfreaks.com/topic/223931-need-help-urgently-pleaseimmediately/#findComment-1157371 Share on other sites More sharing options...
Zurev Posted January 10, 2011 Share Posted January 10, 2011 I actually set my signature to this before this was posted. Quote Link to comment https://forums.phpfreaks.com/topic/223931-need-help-urgently-pleaseimmediately/#findComment-1157426 Share on other sites More sharing options...
Maq Posted January 10, 2011 Share Posted January 10, 2011 I actually set my signature to this before this was posted. The sad thing is, people who create these titles don't read rules, stickies, guidelines, not to mention signatures. Even if they did, do you think they would actually listen...? Quote Link to comment https://forums.phpfreaks.com/topic/223931-need-help-urgently-pleaseimmediately/#findComment-1157430 Share on other sites More sharing options...
ignace Posted January 10, 2011 Share Posted January 10, 2011 Sorry, I should clarify. I actually mean how to echo the string '1+1' in php? class OnePlusOneSimpleEchoInPhp { const STDOUT = 'php://output'; const OUTPUT = '1+1'; public static function output() { file_put_contents(self::STDOUT, self::OUTPUT); } } OnePlusOneSimpleEchoInPhp::output(); I think this is the simplest example I could think of how to do this effectively Quote Link to comment https://forums.phpfreaks.com/topic/223931-need-help-urgently-pleaseimmediately/#findComment-1157467 Share on other sites More sharing options...
Anti-Moronic Posted January 11, 2011 Author Share Posted January 11, 2011 Sorry, I should clarify. I actually mean how to echo the string '1+1' in php? class OnePlusOneSimpleEchoInPhp { const STDOUT = 'php://output'; const OUTPUT = '1+1'; public static function output() { file_put_contents(self::STDOUT, self::OUTPUT); } } OnePlusOneSimpleEchoInPhp::output(); I think this is the simplest example I could think of how to do this effectively You know me well. I like my classes. Sorry, I should have mentioned something else. I then want the string converted into hexidecimal, stored in a file, inserted into a database and printed to page. I then need the data to be used as parameters in a $_POST query which should loop through a set of specified domains and insert each line into a field beginning with the letter 'p'. ..I feel I am missing something else. Do you have the codes?? PLEASE. ASAP. Quote Link to comment https://forums.phpfreaks.com/topic/223931-need-help-urgently-pleaseimmediately/#findComment-1157951 Share on other sites More sharing options...
ignace Posted January 11, 2011 Share Posted January 11, 2011 I do not only have the codes, I can even see them: 000001110001001010000101010001010101010101010101010101010101010 100101000010101000101010101010101010101010101010101001010010101 111000100101000010101000101010101010101010101010101010101010101 000001110001001010000101010001010101010101010101010101010101010 100101000010101000101010101010101010101010101010101001010010101 111000100101000010101000101010101010101010101010101010101010101 000001110001001010000101010001010101010101010101010101010101010 100101000010101000101010101010101010101010101010101001010010101 111000100101000010101000101010101010101010101010101010101010101 000001110001001010000101010001010101010101010101010101010101010 100101000010101000101010101010101010101010101010101001010010101 111000100101000010101000101010101010101010101010101010101010101 000001110001001010000101010001010101010101010101010101010101010 100101000010101000101010101010101010101010101010101001010010101 111000100101000010101000101010101010101010101010101010101010101 000001110001001010000101010001010101010101010101010101010101010 100101000010101000101010101010101010101010101010101001010010101 111000100101000010101000101010101010101010101010101010101010101 000001110001001010000101010001010101010101010101010101010101010 100101000010101000101010101010101010101010101010101001010010101 111000100101000010101000101010101010101010101010101010101010101 Quote Link to comment https://forums.phpfreaks.com/topic/223931-need-help-urgently-pleaseimmediately/#findComment-1157985 Share on other sites More sharing options...
Philip Posted January 11, 2011 Share Posted January 11, 2011 My answer is a bit shorter: 011011000110111101101100 Quote Link to comment https://forums.phpfreaks.com/topic/223931-need-help-urgently-pleaseimmediately/#findComment-1157988 Share on other sites More sharing options...
Pikachu2000 Posted January 11, 2011 Share Posted January 11, 2011 Sometimes it's truly impossible to tell the difference between parodies and the real thing. Quote Link to comment https://forums.phpfreaks.com/topic/223931-need-help-urgently-pleaseimmediately/#findComment-1157990 Share on other sites More sharing options...
Anti-Moronic Posted January 12, 2011 Author Share Posted January 12, 2011 Sometimes it's truly impossible to tell the difference between parodies and the real thing. In my case, *always*. By the way, the above code doesn't work. blank page. don't know the error. Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/223931-need-help-urgently-pleaseimmediately/#findComment-1158437 Share on other sites More sharing options...
Maq Posted January 12, 2011 Share Posted January 12, 2011 Sometimes it's truly impossible to tell the difference between parodies and the real thing. Yes... yes it is. Quote Link to comment https://forums.phpfreaks.com/topic/223931-need-help-urgently-pleaseimmediately/#findComment-1158439 Share on other sites More sharing options...
.josh Posted January 13, 2011 Share Posted January 13, 2011 Sometimes it's truly impossible to tell the difference between parodies and the real thing. If the OP was a serious question, I'd either be laughing at them or shunning them or both, depending on my mood. Quote Link to comment https://forums.phpfreaks.com/topic/223931-need-help-urgently-pleaseimmediately/#findComment-1158668 Share on other sites More sharing options...
tibberous Posted January 14, 2011 Share Posted January 14, 2011 Sorry, I should clarify. I actually mean how to echo the string '1+1' in php? class OnePlusOneSimpleEchoInPhp { const STDOUT = 'php://output'; const OUTPUT = '1+1'; public static function output() { file_put_contents(self::STDOUT, self::OUTPUT); } } OnePlusOneSimpleEchoInPhp::output(); I think this is the simplest example I could think of how to do this effectively And yet still more efficient than java... Quote Link to comment https://forums.phpfreaks.com/topic/223931-need-help-urgently-pleaseimmediately/#findComment-1159184 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.