DE PETITES ANNONCES GRATUITES |
| PASSER UNE ANNONCE GRATUITEMENT |
| CONSULTEZ LES ANNONCES |
With php execute external programs? hi,
i am tring to access to my exe file on php but i could not :(
i checked
http://tr2.php.net/exec
this site, there r some functions
exec,
system
passthru,
i tried all the with diffirent types. But they work for system commends, such as, ping, cmd, ..
but when i try to run my exe file, it does not work.
exec('c:\WINDOWS\system32\cmd.exe /c START c:\notepad.exe');
$cmd = "start /C C: /B Notepad.exe>C:hata.txt";
exec($cmd,$output,$rv);
and, i tried system commandç
Myy System is
Apache 2.0.58
PhP 5.0.2
WinXp.
thnx.
The problem is the PATH variable in your system configuration. The system looks for executables in certain folders. PHP also has some other restrictions about where it will run programs from. I was doing something similar several months ago on a Unix machine only it would only permit the execution of scripts in a sub-directory of pub_html. You could try adding the directory with the program to the system path variable. I haven't used Windows in several months, but it is in the My Computer properties menu. I think you have to click the "Advanced" button or something like that to get to it. Then you can enter directory paths into a text field. Separate entries are delimited by the ';' character.
Just a note about security. This kind of an operation is _VERY_ dangerous. It is best not to use any user input to determine what/how the program is executed. Even then it might not be entirely safe because of potential buffer overflows in the PHP intrepreter that could have currupted the location holding the string you indend to pass to the exec().
PHP Tutorial: A Simple PHP Program
This tutorial presents four PHP programs that introduce PHP programming concepts, including comments, variables, operators, keywords, type conversions, scripting delimiters ...
PHP: Program execution Functions - Manual
Warning. Open files with lock (especially open sessions) should be closed before executing a program in the background.
PHP: Program execution - Manual
System program execution. Introduction; Installing/Configuring. Requirements; Installation; Runtime Configuration; Resource Types; Predefined Constants; Program execution Functions
The Program :: Teen Challenge USA
Warning: include(includes/subheader.php) [function.include]: failed to open stream: No such file or directory in /homepages/31/d221288016/htdocs/tc/program.php on line 22
NLC | Programs & Courses | Program List
Northern Lights College provides and promotes opportunities for lifelong learning. Northern Lights College has 5 Campuses and 3 learning Centres throughout Northern BC.
Colonix Colon Cleanse Official Site by Dr Natura
Complete information on the Colonix Colon Cleansing Program, including prices, ingredients and instructions. Save up to 50 percent!
PHP: exec - Manual
It runs my ftp program and cmd nor php.exe run in the background dead. Simple yet effective, (just how I like it). Hope this helps you as much as it did me.
Partial Hospitalization Program (PHP)
An intermediate level of care. Partial Hospitalization Programs are good for those whoe require structured programming during the day, but do not require overnight care.
Program - PHP - Builder AU
Getting started with Delphi for PHP. This article guides you through a brief tour of CodeGear's Delphi for PHP, a visual IDE for developing applications in PHP.
ISPN 2009: Program
Register Today! Registration is open to ISPN Members, Non-Members, Residents, Fellows, Trainees, Nurses, and other Allied Health Professionals.
INDEX /TAG :
Vous pouvez également consulter le guide pratique programmes qui vous proposera de nombreuses autres informations pratique concernant votre recherche surprogrammes