Modified PHP lection