By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,317 Members | 1,313 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,317 IT Pros & Developers. It's quick & easy.

Major - Header problem

P: 3
Dear friends,
In the popup window i am using the header for downloading the files.
I call the popup window in one directory say for example:
In the popup.php i call the function'../export/export.php');

In the export.php i am using the form action as export_type.php.
In the export_type.php i includes some file . In that one file contains the function for downloading.

If i am using like this my download program is not working what is the
problem here.
If i am using all the files in the same directory then my header is working.
Kindly anyone can address my problem.

With Regards
Aug 6 '07 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 1,044
Where do headers come into this...?

Could you be more clear about what you are trying to do?
Aug 6 '07 #2

P: 3
Hello sir,

I am using the headers for downloading.
I explain the problem in detailed.
************************************************** ***************
=> The file rohini/sample/popup/popup_window.php file call one popup window.
=> Inside this file file i call the window like this.
button5.onClick = "function () { '../quality/src/qm_export_frame.php');
************************************************** ****************
=> In the ../quality/src/qm_export_frame.php i am include the files
Inside the ../quality/src/qm_export_frame.php file
* I am using the form
<form name=test method=post action="qm_type_export.php">
And also i am having one hidden box here.
* Whenever the form is submitted it calls the file
qm_type_export.php includes some more files
* qm_type_export.php file contains
* So i get the value from the hidden box .
* Say if the hidden box value contains one then i call the function
known as call_export().
* The call_export() function is available in the file
* Inside the call_export() function i am calling the function
************************************************** ****************
function call_mime($title)
header('Content-Type: text/css');
header("Content-length: ".filesize($title));
header('Content-disposition: attachment; filename="abcde.csv"');
************************************************** ****************

So this is my infrastructure of the program.
My problem if i call the call_mime($title). It does not work.

But if i am calling the window and all the files related to the same
directory then it is working.

This is my problem.

With Regards,
Rohini A.M
Aug 7 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.