Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
Alejandro Barrero is currently offline Alejandro Barrero
Messages: 5
Registered: February 2011
Junior Member
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.


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
bit constructor is currently offline bit constructor
Messages: 4
Registered: February 2013
Junior Member
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: Sat Aug 23 15:22:30 EDT 2014

Powered by FUDForum. Page generated in 0.01519 seconds