Creating directories and sers/owners problems

Hello!
I am trying to solve this problem, but with no success…
I made a script that creates a directory on my server, and later i want to upload some files into that directory. the problem is that i can’t do this, because the directory has a different “owner” (apache). So, one solution is to make a script that connects through FTP and creates the directory (so that the user is the same and i can upload there). I allready did this, but i am not sure if connecting through ftp by php is as reliable as mkdir()?
and i am also looking for other alternative, since changing the ftp password means chnaging the php script’s login information.
any solutions? (i do dot have access to the httpd.conf file)