473,387 Members | 1,785 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,387 software developers and data experts.

Exec & IIS problem

Hi,
I have an exe that I want to run with php. In the console, it works
perfectly fine.
There is a problem with security and it doesn't seem to run. I have
tried the following after reading various newsgroups and websites and
no luck.
1) Put the Exe file in the wwwroot and set permissions to the IUSER,
giving Read&Execute, even gave Full Control.
2) I also added Everyone too and still no luck
3) Moved the exe file to system32 folder and did the same above and
still no luck
Any ideas? Any help would be greatly appreciated.
Shahid

Oct 12 '05 #1
3 2188
I have an exe that I want to run with php. In the console, it works
perfectly fine. There is a problem with security and it doesn't seem to run. I have
tried the following after reading various newsgroups and websites and
no luck.


See <http://www.php.net/features.safe-mode>.

---
Steve

Oct 12 '05 #2
On 12 Oct 2005 12:34:39 -0700, sh*********@gmail.com wrote:
I have an exe that I want to run with php. In the console, it works
perfectly fine.

There is a problem with security and it doesn't seem to run. I have
tried the following after reading various newsgroups and websites and
no luck.

1) Put the Exe file in the wwwroot and set permissions to the IUSER,
giving Read&Execute, even gave Full Control.
2) I also added Everyone too and still no luck
3) Moved the exe file to system32 folder and did the same above and
still no luck

Any ideas? Any help would be greatly appreciated.


Example code?
What were you trying to run?
What was the return code?
--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Oct 12 '05 #3
Here is what I am doing:

<?
//echo exec('whoami');
//echo "<BR><BR>";
//echo exec('Encryption.exe s PublicKey.xml');
?>

<?php
$output = `Encryption.exe s PublicKey.xml`;
echo $output;
?>

Where Encryption.exe is a console application built using .NET. This
by itself works perfectly fine on command prompt.

Shahid

Oct 13 '05 #4

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

Similar topics

3
by: Mike | last post by:
Hi This will not work, does any one know why? exec("/usr/usr/bin -C $U2 &"); Thanks
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...
2
by: Marty Meyers | last post by:
I have the following line in a php file: $msg= exec("perl $scriptPath/insert.pl $d $u $t 2>&1", $returnVal); Can someone explain the "2>&1" argument? Second problem, this same line of code...
5
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
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
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:
4
by: vol30w60 | last post by:
Hi folks, I am trying to launch a program with PHP code. I am running Apache on Windows XP SP2. I am using the method noted here: http://us2.php.net/manual/en/function.exec.php#59428 To...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.