Anti-Moronic Posted January 10, 2011 Share Posted January 10, 2011 How do you echo 1+1 in php? 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 . . . 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 Quote ^^^ I'll have what he's having . . . +1 me too! 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! 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? 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 Quote Sorry, I should clarify. I actually mean how to echo the string '1+1' in php? Um.... echo '1+1'; 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? 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. 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 Quote 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...? 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 Quote 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 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 Quote Quote 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. 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 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 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. 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 Quote 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? 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 Quote Sometimes it's truly impossible to tell the difference between parodies and the real thing. Yes... yes it is. 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 Quote 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. 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 Quote Quote 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... Link to comment https://forums.phpfreaks.com/topic/223931-need-help-urgently-pleaseimmediately/#findComment-1159184 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.