On which pins wifi shield gets power?

I want to disconnect wifi schield so i want to connect switch between arduino and wifi shield, but i don't know which pins i have connect to switch, that wifi shield doesn't receive electricity.

5V and/or 3.3 V depending on the shield.

Mark

I already disconnect 3.3 and 5 V pins but wifi shield still works

Where is the link to the shield?

Link http://arduino.cc/en/Main/ArduinoWiFiShield

I already disconnect 3.3 and 5 V pins but wifi shield still works

How?

The six pin connector under the board labelled ICSP also has a 5V pin.

When i disconnect pins for power and connected again client don't want connect to server again and write "Not connected".

client.connect(server, port);
      
if (client.connected())
{
    ...
}
else
{
    Serial.println("Not connected");
}

The code of server:

<?php
include 'dbConnect.php';
error_reporting(E_ALL);

/* Allow the script to hang around waiting for connections. */
set_time_limit(0);

/* Turn on implicit output flushing so we see what we're getting
 * as it comes in. */
ob_implicit_flush();

$address = '192.168.1.3';
$port = 850;


$socket = stream_socket_server("tcp://".$address.":".$port, $errno, $errstr);
if (!$socket) {
  echo "$errstr ($errno)
\n";
} else {
  while ($conn = stream_socket_accept($socket,9999999999999999999)) {
	$result = fread ($conn, 4096);
	/*sql*/
    fwrite($conn, "1");
    fclose($conn);
  }
  fclose($socket);
}
?>