Hi, there,
I used the following simple code from the manual to create attachment but
failed.
<?php
$article = mgd_get_article(123); # article with id 123 must exist.
$att = $article->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";
}
?>
The return message:
Failed to create attachment.
Reason: Object does not exist
I've tested that I can print $article->title, which means the article object
exists. Do I need to have a file named "test" or "example" created before I
use this code? If yes, where should I put the files?
BTW, I have set up the directories and changed the httpd.conf file to add
the following line, and restart the Apache server.
MidgardBlobDir /home/httpd/blobs
Anything else that I missed? And where can I find more info on using
attachment? Thank you very much.
JW
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]