Problemas com Arduino+PHP

Agradeço a Todos por terem me ajudado, consegui resolver os problemas do Arduino+PHP , o grande problema estava no servidor apache, não estava se comunicando com a porta serial, ai foi só reinstalar o "Wampserv", e efetuar os ajustes nos códigos e deu tudo certo, segue os códigos que funcionarão:

<<Arduíno>>
int Pino = 13;
int usbnumber = 1 ; 
 
void setup() { 
    pinMode(Pino, OUTPUT);  
    Serial.begin(9600); 
} 
void loop() {
   if (Serial.available() > 0) {
        usbnumber = Serial.read(); 
   }
    if (usbnumber == '1') { 
          digitalWrite(Pino, LOW); //desliga   
    } 
    if (usbnumber == '2'){ 
          digitalWrite(Pino, HIGH); //liga
        }    
}
<?php 
$Porta = "com4";
if (isset($_POST["rcmd"])) { 
    $rcmd = $_POST["rcmd"]; 
switch ($rcmd) { 
    case "desliga": 
		$fp =fopen($Porta, "w+"); 
sleep(2);		
fwrite($fp, '1');

		fclose($fp); 
    break; 
   case "liga": 
        $fp =fopen($Porta, "w+"); 
sleep(2);
		fwrite($fp, '2');  
		fclose($fp); 
		break; 
		default:
    } 
} 

?> 

<html> 

<head><title>Controle Arduino</title>
</head> 
<body> 
<div align="center">
<form method="post" action=""> 
    <p>
      <input type="submit" value="desliga" name="rcmd" height="10%">
    </p>
   
    <p>
 
      <input type="submit" value="liga" name="rcmd" height="10%">


    </p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <body>
</form> 
</div>
</center> 
</body> 
</html>

Os códigos são as correções que o nosso amigo Fabio passou, Obrigado XD...
se precisar de algo tamos ai ;)...