Search found 7 matches

by IamTK
Thu Aug 30, 2007 1:24 pm
Forum: PHP - Code
Topic: PHP fseek and fwrite help
Replies: 4
Views: 667

feyd wrote:fread() may be a start.
ah i see.

Thank you very much for your help!
by IamTK
Thu Aug 30, 2007 10:40 am
Forum: PHP - Code
Topic: PHP fseek and fwrite help
Replies: 4
Views: 667

feyd wrote:You will have to read all data after it into a buffer which you add after your insertion.
How do I read the data into a buffer?
by IamTK
Wed Aug 29, 2007 10:10 am
Forum: PHP - Code
Topic: PHP fseek and fwrite help
Replies: 4
Views: 667

PHP fseek and fwrite help

How do i use Fseek() without having fwrite() replace whatever's there before? Like I want to seek the pointer to a certain spot, then use fwrite to write something there without replacing what's there already. And how do I move the pointer down instead of just to the right? Fseek only moves the poin...
by IamTK
Tue Aug 28, 2007 9:18 pm
Forum: PHP - Code
Topic: PHP Help Variables
Replies: 7
Views: 699

Re: PHP Help Variables

$nhandle = fopen("upload/" . $_POST['docname'], a+"); [...] Parse error: syntax error, unexpected T_VARIABLE That line is the culprit. What is 'a' and why do you try to perform an addition operation on it and an empty string? a+ moves the pointer to the last character and + makes it ...
by IamTK
Tue Aug 28, 2007 1:16 pm
Forum: PHP - Code
Topic: PHP Help Variables
Replies: 7
Views: 699

xpgeek wrote:This code contain 2 syntax errors and 1 security error.
can you tell me where?

and how to fix it?
by IamTK
Tue Aug 28, 2007 11:57 am
Forum: PHP - Code
Topic: PHP Help Variables
Replies: 1
Views: 177

PHP Help Variables

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 ho...
by IamTK
Tue Aug 28, 2007 11:31 am
Forum: PHP - Code
Topic: PHP Help Variables
Replies: 7
Views: 699

PHP Help Variables

Weirdan | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] Can so...