PHP Help Variables

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
IamTK
Forum Newbie
Posts: 7
Joined: Tue Aug 28, 2007 11:16 am

PHP Help Variables

Post by IamTK »

Can someone tell me what's wrong with this code?

$nhandle = fopen("upload/" . $_POST['docname'], a+");
$nstring = $_POST["uploaddoc"]; *Specifically, this line*
fwrite($nhandle, $nstring);
fclose($nhandle);

The error is

Parse error: syntax error, unexpected T_VARIABLE


and

how do I move the pointer down instead of just to the right? Fseek only moves the pointer to the right on the same line of code, I want to be able to move up and down rows, how can i do that?


thanks in advance
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Do not double post.

Locked.
Locked