CodeIgniter Forums

Full Version: how can i run exe file ??
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]abada[/eluser]
like

echo exec('notepad.exe');


thanks

El Forum

[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.

El Forum

[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 ??

El Forum

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

El Forum

[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

El Forum

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

have funny Big Grin

El Forum

[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

El Forum

[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