I am wondering how at commands can be sent with php and without using the hyperterminal.

I have connected a nokia 7610 to my pc (windows 2000) and i have succesfully sent sms through hyperterminal.

I know that after connecting to my modem with AT+CGDCONT en AT*99***# a PPP connection is created, but how can is send AT commands over PPP with PHP.

Do i have to create some kind of dialup script, that will be executed when i connect to my modem?

I also am wondering how i can return the codes when issuing an AT command in PHP, so i can test the response of it.

Thanks in advance for any helpfull tips,