instead of regular php code used for downloading, i have to use hescript no?
i have this code in my download.php file which works perfectly fine run from browser
i created a new project with single file with download code, compiled and executed, it works fine
$file_contents = “dsadsadsa dsad asd sad asdsad sad”;
The problem seems to be related to your project or the use of CodeIgniter. Maybe you should try with the Beta of ExeOutput 2. Do you want to try it out?
I have the latest version of ExeOutputForPHP 18.1 and I am having the same problem with error when using:- $filename = exo_return_hescriptcom(“UserMain.ExportMyFile”, “Error”);
$fp = fopen($filename,‘wb’);
fwrite($fp, $file_contents);
fclose($fp);
Can anyone assist ; I have tried everything to get the script to work that I now of.
I have tried to edit this post but get an error , so I’ll add a reply …
I am loving this program and have achieved a great deal of PHP code conversion to magically run on a PC without any web servers or even internet. there must be a lot of users of this program when you consider the power of PHP, Java and MySQL. All I need to finish this project is to enable file downloads . it all works perfectly on a web server, any help would be appreciated…
You have a fully-functional code sample here that shows you how to let the user choose a file to be saved.
And then write data to it: http://www.exeoutput.com/samples/make-view-pdf-with-php
Especially the demo 2 is what you are looking for.