473,396 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Major - Header problem

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:
/sample/download/popup.php
In the popup.php i call the function
window.open('../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
Deepthi
Aug 6 '07 #1
2 1312
kovik
1,044 Expert 1GB
Where do headers come into this...?

Could you be more clear about what you are trying to do?
Aug 6 '07 #2
rohini
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 () {
window.open( '../quality/src/qm_export_frame.php');
}\n";
************************************************** ****************
=> 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
qm_type_export.php includes some more files
* qm_type_export.php file contains
include("exporting_functions.php");
* 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
exporting_functions.php.
* Inside the call_export() function i am calling the function
call_mime(type).
************************************************** ****************
function call_mime($title)
{
header('Content-Type: text/css');
header("Content-length: ".filesize($title));
header('Content-disposition: attachment; filename="abcde.csv"');
readfile($title);
}
************************************************** ****************


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

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

Similar topics

2
by: mike | last post by:
ok here's the problem: I have a page that displays a form for user to select individual fields and to specify their own criteria which is used to query a database and then create an excel...
4
by: Phillip T. Murphy | last post by:
Not sure if this is the correct forum, but since FPDF is a PHP script, I thought I would give it a try... I am having a problem getting ANYTHING to print in a header using the FPDF functions. I...
8
by: Terry | last post by:
Hi, I built a website using the HMTL header: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html...
2
by: Lee David | last post by:
I am using code to validate a user against a database and then if they are valid, redirecting the page to the working page. I copied the code from another application I have where it works, but it...
3
by: Prakash Wadhwani | last post by:
In a report I have 3 sub-reports. Each Sub-Report has it's own Page Header. When I run the sub-reports individually, the page headers print correctly ... but ... when I run the main report the...
2
by: Lloyd Dupont | last post by:
I'm using VS.NET 2005 beta 2. I have problem compiling project (it says: 'cannot find file StdAfx.h" which is right in the middle of my project). The 1st time I create a new project and it fixes...
4
by: scrawford | last post by:
Hi all, Does anyone know how I can have a Page Header, but have something between that and the detail of the report??? ie.. Page Header Once off piece of text (for the first page only)
3
by: anis2007 | last post by:
Hi, following code run our server but this is not run client server:- index code is: PUT YOUR CODE BETWEEN code OR php TAGS!! It is absolutely unreadeable! <?php ob_start(); session_start();...
2
by: Redligt World | last post by:
i have a adult based site i.m working on the works 100% ok in ie, but has major display errors in firefox You can view the site at http://www.redlightworld.com/premium Basically, the site views...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.