What are you trying to accomplish here? This script starts excel on the webserver, and then? excel will just sit and wait for you to do something with it, but you can't, because the user interface runs on the webserver and is very probably not even visible! The system() call waits for the process to exit, but that never happens; hence the timeout error.
If you want to offer the excel file for download, you would go about it quite differently: you'd print the appropriate 'application/octet-stream'
Main Topics
Browse All Topics





by: bebonhamPosted on 2004-06-11 at 07:22:20ID: 11288879
It only works from "dos" because when someone exceutes the script from your webserver, it is trying to open the excel on your machine...and there is probably a permissions issues stoping that.
xls\n\n"; instead of system("c:\\security_data\ \eee.xls") ;
try putting the excel file in your "htdocs" folder inside apache, and then use print "Location: http://yourserver.com/eee.
but you will have to present the file to the browser, by sending them to it, or printing it to the browser
feel free to ask for more details if necessary.
bebonham