Welcome to WebmasterWorld Guest from 220.127.116.11
so the final location is /home/account_name/public_html/admin/receipts/123456-0987.html
confirmation.html is unable to write to this location. The permissions of the 'receipts' folder are set to 755 and I dont want to change them to 777. How can I get the confirmation.html page to be able to write to the 'receipts' folder without changing the permissions?
To solve this problem, you can basically do one of two things (neither of which will be under your control without root access to the server):
Short answer: contact your host/sysadmin :)
Unfortunately, I am the sys admin of my server :) But I do have root access to it, and I do have SuExec enabled.
How do I find out who the owner of the php script is, who the owner of the folder is, and how do I change the owners of the php script or owner or the folder if needed so that they match up?
All you have to do for php to be able to write to folders with 755 permissions is put 777 permissions on the folder above it (which allows the script to create folders within this folder), have the php script create the new folder itself that it will be storing files in, then change the folder permissions back to 755 for the folder above it.
Thanks bedlam for pointing me in the right direction!