savagenoob Posted June 1, 2009 Share Posted June 1, 2009 I have a site that insurance agents will be using, alot of them use a program that is installed locally on their machines, the files that program uses have a .dat extension. I am trying to reverse engineer these files to create them via php and pass to the program with the data on my website. I can successfully do this testing it locally, but when I try to upload the code and do it, it opens the program but no data is passed through. Maybe a head problem? <?php header( 'Content-Type:text/octet-stream'); header('Content-Transfer-Encoding: binary'); header('Content-disposition: attachment; filename="client.dat"'); ?> "0","0","0","0032367" "1","37","1","Clients Name","1234 Clients Address","City","11111","43","","53","111-111-1111","4","4","CA - FSC RATER","03/31/2009","1041","37","","","","","42111 Blah Way","City","Zip","0","w","none","0","1","0","0","0","0.00","0.00","0","0","0","03/31/2009","P","","0","0","0","0","0","0" the file data is actually pretty long so I just included a snippet. I have tried the heredoc method as well and it doesnt work either. what kills me is that it populates the data no problem on my local apache/php setup, just not on my hosted site. Link to comment https://forums.phpfreaks.com/topic/160526-file-creation-problem/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.