You are here: Using Exec Function « PHP « IT news, forums, messages
Using Exec Function

Posted by "Davide Pasqualini" on 06/16/05 16:23

I'm Windows XP Professional SP1, Apache 2.0.50 and PHP 5.0.4
I'm trying to run a Win32 application using Exec() or Shell_Exec() but it
doesn't work.

In PHP.INI safe_mode is Off
Apache is running under SYSTEM user

I also tryed to use backtick operator as shown in
http://php.net/manual/en/language.operators.execution.php
but with no success, in the browser I get something like this:

C:\Programmi\Apache Group\Apache2\htdocs\prove>C:\HELLO.EXE

php code
<?php
$test = `c:\mybat.bat`;
echo "<pre>$test</pre>";
?>

mybat.bat
C:\HELLO.EXE

I'm still learning to use PHP, so this obviously beyond me.

Davide

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация