Convert a VB script to PHP

Closed