I'm totally stumped here and am hoping beyond hope that someone out there can put a cork in my day of coding agony.
I am setting up Cardservice International's Linkpoint's PHP wrapper to work with osCommerce (an open source eCommerce s/w package). I've followed the directions to the T but something's not right and I can't put my finger on it.
The file in question (lpphp.php3) contains a line which reads...
[FONT=courier new]$fp=fopen($myfilename,"w");[/FONT]
$myfilename is a construct of directory information and random variables. The resulting string looks something like this...
[FONT=courier new]
temp/TEMPFILE_20034618823_1
| |
| --- A randomly generated filename
--- the temp directory off of the web server root
[/FONT]
The lpphp.php3 file itself gets called by another php file via an Include statement. Permissions on the temp directory off of the web root are 777. I coded a simple "fopen()" test to make certain that files could in fact be created in this directory by PHP... which they can.
This being said, the lpphp.php3 seems completely unable to navigate the file creation process. I consistently get an error that reads, "Cannot open Temp File!" I've dug into the code and feel confident that this message is resulting because lpphp.php3, for whatever reason, isn't permitted to create the file.
Apologies in advance for my lack of permissions knowledge. Please help before I pull all my hair out!
Thanks!