What you are doing is correct but you dont have what the package needs to compile. You can either install what it needs or you can install the source rpm (rpm -ivh php-4.1.1-1.tm.src.rpm) then edit /usr/src/redhat/SPECS/php.spec. You will see a section that looks something like
%configure \
--prefix=%{prefix} \
--with-config-file-path=%{sysconfdir} \
--with-expat-dir=/usr \
--disable-debug \
--enable-pic \
--disable-rpath \
--enable-inline-optimization \
......
Find the lines --with-curl, --with-xml, and --with-xmlrpc,and remove them. Save the file and type "rpm -ba /usr/src/redhat/SPECS/php.spec". Unless your missing something else this should then rebuild the rpms.