On 03/02/2011, at 02:26, Jean Pierre Dentone wrote: > we deployed a small php script in one of the sites to ask if you want to open > or download a pdf file (ie TOS.pdf). Problem is that as soon as I click on > the link the browser will pop up an error saying that it can download/open > the file because the source is not available (if i click the pdf file > directly it will open it with no problem). I have tested the script on an > apache server and is working ok so I think the problem has to be with > Cherokee or maybe fast-cgi.
I have just tested it, and everything worked as expected. The file was downloaded with the appropriate file name as soon as I accessed the URL. Have you checked that PHP can actually access the file? If PHP couldn't find the file, it'd skip the "if" block and reach the "exit" call without replying anything. That could explain the problem. -- Octality http://www.octality.com/ _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
