feels like everyone is silently ignoring it :)
try this - put the code onto a new page in a page belonging to a sitegroup
change the page properties to auth (otherwise it can not write data);
now see what the output is.
you should also have a look at the midgard database
mysql midgardstaging
selecT * from blobs where id='THE_ID_BELOW';
this should give you the filename as well.
<?php
$midgard = mgd_get_midgard();
$page = mgd_get_article($midgard->page);
$att = $page->createattachment("test","example","text/html");
if(! $att) {
echo "Failed to create attachment.<br>\n";
echo "Reason: " . mgd_errstr();
} else {
echo "Attachment created. ID is $att.<br>\n";
$filehandle = mgd_open_attachment($att,"w");
fputs($filehandle, "Writing to an attachment right now...");
fclose($filehandle);
echo "DONE WRITING - try reading?";
mgd_serve_attachment($att);
}
?>
regards
alan
Miles Scruggs <[EMAIL PROTECTED]> Forwarded From:
> Would somebody be able to help me on this thread? I posted about 5-6
> messages but have gotten no response
>
>
> Miles
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]