M4ster:::Mind Posted April 12, 2007 at 02:38 PM Report Share #93321 Posted April 12, 2007 at 02:38 PM Pessoal.... Estou aqui com uma dúvida no php.. Como é que eu faço para abrir um executável... com o href nao dá.. Como <a href=\"C:\Programas\Microsoft Office\OFFICE11\EXCEL.EXE\"> Isto nao funciona ? Como faço para abrir um exe?? Link to comment Share on other sites More sharing options...
karva Posted April 12, 2007 at 02:46 PM Report Share #93322 Posted April 12, 2007 at 02:46 PM O máximo que podes fazer é no servidor, usar o comando exec. Proud LEIC-A@IST student! Link to comment Share on other sites More sharing options...
vbmaster Posted April 12, 2007 at 02:46 PM Report Share #93323 Posted April 12, 2007 at 02:46 PM Para a próxima evita usar um subject de thread que nada diz acerca do que lá se vai tratar. Tenta por antes da localização 'file:///' Link to comment Share on other sites More sharing options...
skin Posted April 12, 2007 at 06:00 PM Report Share #93358 Posted April 12, 2007 at 06:00 PM <?php $line1 = exec(escapeshellcmd($comando), $output, $error); while (list(,$line) = each($output)){ echo $line, "<BR>\n"; } if ($error){ echo "Código de erro: $error<BR>\n"; exit; } ?> Our lives begin to end the day we become silent about things that matter - Martin Luther King Link to comment Share on other sites More sharing options...
djthyrax Posted April 12, 2007 at 06:10 PM Report Share #93361 Posted April 12, 2007 at 06:10 PM Para executar no server: passthru("C:/programa.exe"); Para executar no cliente: echo '<a href="file:///C:/programa.exe">Programa</a>'; Não peças ajuda por PM! A tua dúvida vai ter menos atenção do que se for postada na secção correcta do fórum! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now