Jump to content

Recommended Posts

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...?

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 ;)

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.

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

 

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...

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.