Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #7752 > unrolled thread
| Started by | "Robert Bralic" <robert.bralic@si.t-com.hr> |
|---|---|
| First post | 2012-12-10 08:39 +0100 |
| Last post | 2012-12-10 15:23 +0000 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.php
How to run program from php..? "Robert Bralic" <robert.bralic@si.t-com.hr> - 2012-12-10 08:39 +0100
Re: How to run program from php..? Captain Paralytic <paul_lautman@yahoo.com> - 2012-12-10 03:02 -0800
Re: How to run program from php..? "Robert Bralic" <robert.bralic@si.t-com.hr> - 2012-12-10 13:46 +0100
Re: How to run program from php..? The Natural Philosopher <tnp@invalid.invalid> - 2012-12-10 15:23 +0000
| From | "Robert Bralic" <robert.bralic@si.t-com.hr> |
|---|---|
| Date | 2012-12-10 08:39 +0100 |
| Subject | How to run program from php..? |
| Message-ID | <ka43jm$l74$1@ls237.t-com.hr> |
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
[toc] | [next] | [standalone]
| From | Captain Paralytic <paul_lautman@yahoo.com> |
|---|---|
| Date | 2012-12-10 03:02 -0800 |
| Message-ID | <918e61f4-eaa4-4089-9fa4-deb9468df09d@r3g2000vbn.googlegroups.com> |
| In reply to | #7752 |
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).
[toc] | [prev] | [next] | [standalone]
| From | "Robert Bralic" <robert.bralic@si.t-com.hr> |
|---|---|
| Date | 2012-12-10 13:46 +0100 |
| Message-ID | <ka4lin$h8o$1@ls237.t-com.hr> |
| In reply to | #7753 |
"Captain Paralytic" <paul_lautman@yahoo.com> wrote in message news:918e61f4-eaa4-4089-9fa4-deb9468df09d@r3g2000vbn.googlegroups.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..;)
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2012-12-10 15:23 +0000 |
| Message-ID | <ka4uot$qi8$4@news.albasani.net> |
| In reply to | #7754 |
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.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web