CodeIgniter Forums
how can i run exe file ?? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: how can i run exe file ?? (/showthread.php?tid=36879)



how can i run exe file ?? - El Forum - 12-18-2010

[eluser]abada[/eluser]
like

echo exec('notepad.exe');


thanks


how can i run exe file ?? - El Forum - 12-18-2010

[eluser]pickupman[/eluser]
Executing windows binary files maybe disabled on some server environments. If you are able to, try using the full path to the file. You will need to use / forward slashes for the path.


how can i run exe file ?? - El Forum - 12-18-2010

[eluser]abada[/eluser]
@pickupman thanks
i tried

$addr = 'C:\Program Files\PDFCreator\PDFCreator.exe /PF"c:\a.doc"';
exec ($addr,$output, $return);

but no response from server

any ideas ??


how can i run exe file ?? - El Forum - 12-18-2010

[eluser]pickupman[/eluser]
For security reasons this is probably disallowed. If you need to create a PDF file checkout dompdf in the wiki.


how can i run exe file ?? - El Forum - 12-18-2010

[eluser]techgnome[/eluser]
Also... since it's running on the server, if the app does open... it's on the server, not the client. So if you were expecting it to open notepad on your client machine, you could be waiting a very very very long time.

-tg


how can i run exe file ?? - El Forum - 12-19-2010

[eluser]abada[/eluser]
i found solution and i want to share with u
http://www.princexml.com/doc/7.0/

have funny Big Grin


how can i run exe file ?? - El Forum - 03-28-2011

[eluser]chazy (aldever calvo)[/eluser]
are you successful with this?
my problem is similar to yours...

i have a text file and i want to make an executable file in which after the client download will automatically execute and write the text file to client's hard disk


how can i run exe file ?? - El Forum - 03-28-2011

[eluser]InsiteFX[/eluser]
CodeIgniter removed the percent sign 20 for spaces you need to use them for spaces.

It's file://laptop/My Documents/FileSchemeURIs.doc Like so

InsiteFX