Fixing some bugs in php files 21713 8 22PM -ian