Thank you Cactus, your advice has narrowed down the problem.
I checked in the messages.log file and found:
Feb 11 00:19:43 mordor httpd: PHP Warning: fopen(): open_basedir restriction in effect. File(/XXX/Target.txt) is not within the allowed path(s): (/home/e-smith/files/ibays/foi/) in /home/e-smith/files/ibays/foi/html/admin/TEST-filesave-3.php on line 3
Feb 11 00:19:43 mordor httpd: PHP Warning: fopen(/XXX/Target.txt): failed to open stream: Operation not permitted in /home/e-smith/files/ibays/foi/html/admin/TEST-filesave-3.php on line 3
I went to your suggested site,
http://wiki.contribs.org/PHP#Open_basedir_restriction, and attempted to execute the instructions
But after entering the first command,
db accounts getprop foi PHPBaseDir, I got no output and was just returned to the prompt.
I then tried
db accounts show and got a listing of all accounts. Checking just the
foi=ibay section I found no key labeled
PHPBaseDir (in fact none of the ibay sections had this key).
Am I looking in the wrong place?
Is
PHPBaseDir set up somwhere else as a global value for all ibays?
Cheers,
Alex