Ok, there are two parts, one is invoked if the txt file doesn't exist, the other is invoked if it it does. Very similar in code. Anyway...
This is what I am using in my href:http://airhead.hfdd.com/airworthy/download/dl.php?file=airhead_fs9_deke&type=.zip
This is the first few lines of PHP file:$FILE=$_GET[file];
Starting at line 17 (lines above this are for if file already exists, both produce same error)if (!file_exists("$FILE.txt"))
Yes, the ... is there to abbreviate for posting.
In so far as CHMOD, I had set it by hand thru the CPanel, but now tweaking it in the PHP file. From what I know, it would need to be 777 for full read/write permissions.
This whole thing seems like it should be relatively simple, but I'm a greenhorn, so what do I know? I would actually like to write this info to the mysql db, but figured it might be easier to start with a text file first. I have tried setting all this up locally for experimentation, no bones. Got Apache running with PHP, but can't get mysql to work and play well with the other kids.
Any assistance is greatly appreciated. :)