Re: system() PHP newbie!!
| From: | Richard Lynch | Date: | Tue, 20 Feb 2001 23:09:41 +0000 |
| Subject: | Re: system() PHP newbie!! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40848@lists.php.net to get a copy of this message | ||
I believe you can only get system() to work in PHP4 by running PHP4 as a CGI
rather than ISAPI/Module.
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: "Kevin Connolly" <connolk@tcd.ie>
Newsgroups: php.general
Sent: Tuesday, February 20, 2001 2:15 PM
Subject: [PHP] system() PHP newbie!!
Hi,
I want to use the system() command for some encryption! I can't get it to
work and so am trying to just get the system() command to run any program!!
There is not much (in the way of examples) on the php page and was wondering
if any one could give me a few pointers? I have an apache server running on
win2000. If say I wanted to run a program called temp.exe in the root
directory on my machine is it a matter of just adding the line:
system("C:/temp.exe")?? I have also tried system("C:\temp.exe)!! This is
probably a really silly question but I am new to PHP (and it is my first
scripting language!!) Could someone send me an example or tell me what I am
doind wrong?
Any assistance is very much appreciated,
Kevin Connolly.