> > 
> > The file you're trying to read. 'su' to the user apache runs as and
> > see if you can cat the file.

>From whereever the webserver is running.

> <? 
> $article = mgd_get_article($id);
> $attid=$article->createattachment($name, $title, "image/gif");
> if ($attid) {echo "ok created" ;}
> // returns ok
> $attfp=$article->openattachment($name,"r+"); 
> if ($attfp) {echo "ok opened";}
> // returns ok
> fwrite ($name,$attfp);

The first argument of fwrite is a filehandle, so:

fwrite($attfp, ....)

Emile



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to