how can i run exe file ??


echo exec('notepad.exe');


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.

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

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

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.


i found solution and i want to share with u

have funny Big Grin

[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

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.