Looks like the script is trying to write to a log file - hence the fopen "failed to open log file" error.
Second, since this is a PHP script, it need not have execute permissions, only read - 744 would be fine. Also, it need not
be in your cgi-bin dir. You may want to move the file to somewhere
outside of cgi-bin (so apache doesnt try to "run" it) and make sure
that apache is configured to parse PHP files through the PHP engine.
Josh
PayPal
http://www.payapl.com/pdn