Just to let you know ... the problem for some reason was with the MySQL-shared-compat-4.0.20-0.i386.rpm since it was already installed. This seems to have stopped the script from running completely.
I installed the remaining -4.0.21rpms manually and all is well now.
The MySQL now reads the proper version.
I'm curious as to why phpinfo is reading the clientAPI version as 3.23.58? Should this not read 4.0.21 as well?
By the way, I used your PHP upgrade script to version 4.3.8 and it worked perfectly.
Great work ...I'm truely impressed with the power of these scripts and your dedication to helping the community. Sure makes things easier.