473,395 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Begginers question on exec() etc

C16
Hi All

Very new to the world of php and still slightly struggling with concept that
its running on the server side (slow learner :O) ). My question is this, is
it possible to run an exe on the clients machine from a php script that is
on a web site, say if I wanted to automatically start say a game exe that
the visitor to my site had downloaded and installed previously. Can that be
done?

Many thanks

Chris
Sep 21 '05 #1
3 1314
no***@nowhere.com says...
Very new to the world of php and still slightly struggling with concept that
its running on the server side (slow learner :O) ). My question is this, is
it possible to run an exe on the clients machine from a php script that is
on a web site, say if I wanted to automatically start say a game exe that
the visitor to my site had downloaded and installed previously. Can that be
done?


Run a .exe file on *my* machine when I visit a web site? HAHAHAHAHA!

If that could happen what would there be to stop you from, say,
reformatting my hard drive.

A java applet, weeeell just maybe in highly controlled circumstances.

Geoff M
Sep 21 '05 #2
you could look at ActiveX also... this can do some things but you must
look at the security issues this would cause for your visitors. If i
got a notice saying this page is trying to run an exe I would close you
immediately.

If you want you COULD link to the exe so long as you knew where it was
stored but this would give your users the option to Open or Save the
file.

try <a href="file:///C:\blah.exe">click here to open your game</a>

Im not sure if browsers these days will block such behaviours (i would
think so)

Sep 21 '05 #3
C16 wrote:
Hi All

Very new to the world of php and still slightly struggling with
concept that its running on the server side (slow learner :O) ). My
question is this, is it possible to run an exe on the clients machine
from a php script that is on a web site, say if I wanted to
automatically start say a game exe that the visitor to my site had
downloaded and installed previously. Can that be done?

Why would you want to? More importantly, why on EARTH would they want
you to? Are they too dumb to start an executable on their own machine?


Brian
Sep 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hal Vaughan | last post by:
I have a script used to find and run Java on a Windows system.  It worked fine on original tests (on a Windows XP system).  It's now running on a Windows 2000 (sp3) system, and it won't work -- the...
1
by: Andr? Roberge | last post by:
I have the following two files: #--testexec.py-- def exec_code(co): try: exec co except: print "error" #-- test.py--
0
by: Jan | last post by:
I store sql-commands in a database table. In the first step I get the sql command out of the database table with embedded sql. In the second step I try to execute the command, which i got from the...
17
by: comp.lang.tcl | last post by:
The TCL command I am using will do a command-line action on a PHP script: set cannotRunPHP I have to do it this way as both the TCL script and the PHP script run as CLI. However, "info.php"...
5
by: TPJ | last post by:
I have the following code: ----------------------------------- def f(): def g(): a = 'a' # marked line 1 exec 'a = "b"' in globals(), locals() print "g: a =", a
4
by: Michael | last post by:
Hi, I'm having difficulty finding any previous discussion on this -- I keep finding people either having problems calling os.exec(lepev), or with using python's exec statement. Neither of...
21
by: comp.lang.tcl | last post by:
set php {<? print_r("Hello World"); ?>} puts $php; # PRINTS OUT <? print_r("Hello World"); ?> puts When I try this within TCL I get the following error:
2
by: xml0x1a | last post by:
How do I use exec? Python 2.4.3 ---- from math import * G = 1 def d(): L = 1 exec "def f(x): return L + log(G) " in globals(), locals() f(1)
26
by: warth33 | last post by:
Hello I have a php site. Some page needs to call an external program. The programs are home made c# applications. It uses to work without problem. For a while. Maybe it work for some hour....
23
by: Maarten | last post by:
Howdy, Recently I switched from a Windows PC to Mac OS-X 10.5 (php v5.2.6) and I have a little problem with one function within my cd-management script. For extracting a bit of info from my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.