Processing Arduino Input/Output from C++/Python to PHP/Javascript

    if (Comp("1pin2")==0) { digitalWrite(2,HIGH); Serial.println("1pin2"); } if (Comp("0pin2")==0) { digitalWrite(2,LOW);Serial.println("0pin2"); }

The Comp function returns a char, whose value is 0 or 1. Why a char? Why not a more logical byte?

char Comp(char* This) {

The keyword this has very specific meaning in C++. A variable with the same name, except for a capital letter is confusing. In this case, it is also meaningless.

        for (int i=0;i<19;i++) { inData[i]=0; }

You don't understand C strings, do you? A string is NULL terminated, as you do in the while loop. It takes only one NULL to terminate the loop.

        return(0);
    }
    else { return(1); }

The parentheses are not needed.

Is there a way to be able to send a series of other web applications like PHP to be read by Python and then proceed to the Arduino?

PHP is not a web application. It is a scripting language that is particularly well suited to creating and manipulating text files that a web browser can consume. You can't "send a web application" anywhere.

You could, and probably should, get an ethernet shield for your Arduino. Connect the Arduino to the router, configure the router properly, and any web browser, PHP script, Python script, etc. can talk to the Arduino, sending it data, and getting data from it.