System()/exec() function problem - solved
Posted: Thu Mar 08, 2007 7:43 am
I am trying to use system/exec functions to call a dictionary program. It uses external files with inflections definitions etc. It appears that php is loading the file in a temp directory, since the program returns :
Everything is in the php folder, safe mode is (obviously) off. (I have read about the security issues with these functions, but am just trying to get things going first).
Apache 2, PHP 5, Win XP
How can I get around This? I even tried (for reasons of curiosity only) copying all files to the windows temp directory. no dice.
Thanks, Seth
(it is there)There is no INFLECTS.SEC file. The program cannot work without one. Make sure you are in the subdirectory containing the files for inflections, dictionary, addons and uniques.
Everything is in the php folder, safe mode is (obviously) off. (I have read about the security issues with these functions, but am just trying to get things going first).
Code: Select all
<?php
system('words.exe -deus');
?>How can I get around This? I even tried (for reasons of curiosity only) copying all files to the windows temp directory. no dice.
Thanks, Seth