How to request a PHP file on a webserver using GSM module.?

I've a GSM Module SIM300 . I've tested AT Commands on it . I've read it's datasheet too. But I'm not still able to figure out how to request a PHP file on a web server . This is my code so far :

#include <SoftwareSerial.h>

SoftwareSerial GPRS(2, 3);
unsigned char buffer[64]; // buffer array for data recieve over serial port
int count=0; // counter for buffer array
void setup()
{
GPRS.begin(9600); // the GPRS baud rate
Serial.begin(9600); // the Serial port of Arduino baud rate.

}

void loop()
{
if (GPRS.available()) // if date is comming from softwareserial port ==> data is comming from gprs shield
{
while(GPRS.available()) // reading data into char array
{
buffer[count++]=GPRS.read(); // writing data into array
if(count == 64)break;
}
Serial.write(buffer,count); // if no data transmission ends, write buffer to hardware serial port
clearBufferArray(); // call clearBufferArray function to clear the storaged data from the array
count = 0; // set counter of while loop to zero

}
if (Serial.available()) // if data is available on hardwareserial port ==> data is comming from PC or notebook
{
GPRS.write(Serial.read());
} // write it to the GPRS shield
}
void clearBufferArray() // function to clear buffer array
{
for (int i=0; i<count;i++)
{ buffer*=NULL;} // clear all index of array with command NULL*
}
[/quote]

I don't see that your logic in loop() achieves anything useful at the moment.

If you want your Arduino to request a PHP page from a web server then you need to establish a TCP connection to the HTTP server's IP address and TCP port, and then write an HTTP request over the connected socket, and then receive the HTTP response. If you wanted to do anything with the response then you'd need to parse it to establish the HTTP status of the request, and extract the response data if there was any. Depending on the nature of the data and what you want to do with it, you might need to decode it too.

I don't know of any, but there's a chance that somebody has already written an HTTP client library to do this work for you so it would be worth searching for it.

Also you need to confirm if your GSM Module SIM300 implement some PPP protocol to "speak" to the Internet.If it doesn't have that well you are in trouble with it.I'm fighting with a Siemens MC35i to do that because it won't implement it.The device that connect to his COM port must provide the PPP implementation (if it was a PC it would be simple) but since I use the atmega 328 in stuck with it :blush:
Good luck