Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vnd.ms-excel problem

Status
Not open for further replies.

kathanon

Technical User
Jan 29, 2002
218
GB
I have a page which used to let excel observations be exported. Since moving to a new server this now gives an error of object not found when people try to export the observations in excel format.

At the top of the php page that is supposed to export the data it mentions "Content-Type: application/vnd.ms-excel"

Would I need to reconfigure the new server or make sure it has excel or is this dependent on the client.

Many thanks
 
yes it is client dependent, error may be in some other part...

Known is handfull, Unknown is worldfull
 
Thanks, the error is

Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster
Error 404

The link is from a page which gives data in a graph format and also gives the opportunity to export in excel


is the page it doesn't find, the basic pages and the csvout.php are all present on the server, but I am not sure if this is because of it needing to run excel. It is hosted on a new dedicated linux server and it used to work on the old server

Many thanks

Kathy
 
The error you're reporting is a browser error. The server is reporting to the browser that the file pointed to by the URL cannot be found.

What I find interesting about your URL is:

/csvout.php/data.xls?ID=178

This looks to me like a URL that needs to be manipulated by Apache's mod_rewrite module before Apache attempts to find the script.

Under a default installation, Apache is going to tread "csvout.php" as a directory name. Mod_rewrite can do some things to transform the URL so that Apache knows that "data.xls" is actually more information being sent to the script, not a file to be sent or executed.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Thank you sleipnir214

I will try to have a look and see how apache was configured on the old server, or at least email the ISP

I appreciate your help

Kathy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top