You are here: Can't execute external program « PHP « IT news, forums, messages
Can't execute external program

Posted by Voip tech on 12/07/68 11:32

Hello,
I cannot get exec(), system() or passthru() to run an extenal program.
From the command line it runs perfectly:
[root@hnick html]# /var/www/html/myprog -E 123456789098.dat sample1.txt
sample1.new
(no output, it just creates the file .new)

Here is the php I've created, fairly simple:
<?php
exec("/var/www/html/myprog -E 123456789098.dat sample1.txt
sample1.new");
?>
I've tried using full paths as well
From other threats I've double-checked this:
- safe mode is disabled
- the values for max_execution_time and memory_limit are large enough
for this simple program.
- permissions are correct for all files involved:
any user can run the program ( rwxr-xr-x )
any user can read input files
apache is the owner of all files involved

I'm getting frustrated, Any help will be deeply appreciated
Henry

 

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

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