> -----Original Message-----
> From: emile [mailto:emile]On Behalf Of Emiliano
> Sent: Thursday, March 22, 2001 2:36 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [midgard-user] Problem with document attachment on IE5
>
>
> Erwin LEUBAZ wrote:
>
> > The URL is like this :
> > https://www.company.com/help/intranet/attachment/did/44
> >
> > Must I use
> https://www.company.com/help/intranet/attachment/did/44.pdf after
> > a php check of the type of the document.
>
>
This solution doesn't work for me.
But if I open the attachment directly by the url that works for all
documents.
so with that it is possible to redirect by a good way :
$db = mysql_connect("localhost", "user","password");
mysql_select_db("database",$db);
$result = mysql_query("SELECT name FROM blobs WHERE id = '$argv[0]'",$db);
if ($myrow = mysql_fetch_array($result))
do {
header ("Location:
https://www.company.com/attachment/".$myrow[name]);
exit;
} while ($myrow = mysql_fetch_array($result));
}
else
echo "Sorry, no records were found!";
}
That the solution for attachments with pages but not for articles, topics
...
Have a good day.
Regards.
Erwin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]