Skip to main content



      Home
Home » Language IDEs » PHP Development Tools (PDT) » Problem downloading file(Problem downloading file)
Problem downloading file [message #1006560] Thu, 31 January 2013 12:53 Go to next message
Eclipse UserFriend
My code is:
		
header('Content-type: text/plain');
header('Content-Disposition: attachment; filename=test.txt');
readfile($filePath);


The file exists in my local server with one line, but I am getting
<html>
<head></head>
<body>
This is a line</body>
</html>

Your help will be greatly appreciated.
Re: Problem downloading file [message #1007020 is a reply to message #1006560] Mon, 04 February 2013 00:07 Go to previous message
Eclipse UserFriend
Hi Alejandro,

this is perhaps the wrong forum to ask here?

Perhaps if you go to to the forum where you installed the server functions from?
(e.g. Apache, Zend, PHP, Ubuntu, XAMPP or others)

best regards
Tibor
Previous Topic:xdebug not breaking at breakpoints
Next Topic:Juno, PDT
Goto Forum:
  


Current Time: Sun Jul 06 16:00:18 EDT 2025

Powered by FUDForum. Page generated in 0.24584 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top