FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » How to run program from php..?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
How to run program from php..? [message #179820] Mon, 10 December 2012 07:39 Go to next message
Robert Bralic is currently offline  Robert Bralic
Messages: 2
Registered: December 2012
Karma: 0
Junior Member
Hi,

I want to run an external program from
php like this:
?>
<a href="C:\Program Files\Adobe\Acrobat 6.0\Acrobat"><?php echo
$row[8]; ?></a>
<?php

This marks file as link but doesen't run Acrobat..

Thanks in advance, Robert...;)



__________ Information from ESET NOD32 Antivirus, version of virus signature database 7782 (20121209) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
Re: How to run program from php..? [message #179821 is a reply to message #179820] Mon, 10 December 2012 11:02 Go to previous messageGo to next message
Captain Paralytic is currently offline  Captain Paralytic
Messages: 204
Registered: September 2010
Karma: 0
Senior Member
On Dec 10, 7:39 am, "Robert Bralic" <robert.bra...@si.t-com.hr> wrote:
> Hi,
>
> I want to run an external program from
> php like this:
> ?>
>        <a href="C:\Program Files\Adobe\Acrobat 6.0\Acrobat"><?php echo
> $row[8]; ?></a>
> <?php
>
> This marks file as link but doesen't run Acrobat..
>
> Thanks in advance, Robert...;)

Oh boy Robert, you have an awful lot to learn. the <a href...> part is
HTML, it is nothing to do with php. HTML is interpreted by your
browser. php runs on the server and so it has no way of opening
acrobat on your client (a PC, tablet, phone, ...).

If you check the documentation for HTML (there is lots around on the
internet), you will never find anything that says that you can put
such a link in there. At best, you could have your client configured
such that, if say a .pdf file is delivered by the browser, it will
launch Acrobat, but that is dependant on the set up of your machine
(and influenced by the headers sent by the server).
Re: How to run program from php..? [message #179822 is a reply to message #179821] Mon, 10 December 2012 12:46 Go to previous messageGo to next message
Robert Bralic is currently offline  Robert Bralic
Messages: 2
Registered: December 2012
Karma: 0
Junior Member
"Captain Paralytic" <paul_lautman(at)yahoo(dot)com> wrote in message
news:918e61f4-eaa4-4089-9fa4-deb9468df09d(at)r3g2000vbn(dot)googlegroups(dot)com...
On Dec 10, 7:39 am, "Robert Bralic" <robert.bra...@si.t-com.hr> wrote:
> Hi,
>
> I want to run an external program from
> php like this:
> ?>
> <a href="C:\Program Files\Adobe\Acrobat 6.0\Acrobat"><?php echo
> $row[8]; ?></a>
> <?php
>
> This marks file as link but doesen't run Acrobat..
>
> Thanks in advance, Robert...;)

Oh boy Robert, you have an awful lot to learn. the <a href...> part is
HTML, it is nothing to do with php. HTML is interpreted by your
browser. php runs on the server and so it has no way of opening
acrobat on your client (a PC, tablet, phone, ...).

If you check the documentation for HTML (there is lots around on the
internet), you will never find anything that says that you can put
such a link in there. At best, you could have your client configured
such that, if say a .pdf file is delivered by the browser, it will
launch Acrobat, but that is dependant on the set up of your machine
(and influenced by the headers sent by the server).

Escouse me for souch a stupid question,
I understoded that this what it hapens on client
not a server side, 5 minuts after putting a question...

Thanks, Robert..;)
Re: How to run program from php..? [message #179823 is a reply to message #179822] Mon, 10 December 2012 15:23 Go to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
On 10/12/12 12:46, Robert Bralic wrote:

>
> Escouse me for souch a stupid question,
> I understoded that this what it hapens on client
> not a server side, 5 minuts after putting a question...
>
> Thanks, Robert..;)
>

And be aware that having the ability to execute code on a client machine
is something that is designed OUT of browsers for security reasons.


Javsacript is as good as it gets, or the ability to launch a plugin or
third party app top deal with some downloaded data.


>


--
Ineptocracy

(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: imap_open: Certificate Error, but only in PHP
Next Topic: Simple expression parser for PHP.
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 11:01:46 GMT 2024

Total time taken to generate the page: 0.12106 seconds