behaviour of system()

From: Date: Tue, 09 Jan 2001 00:50:52 +0000
Subject: behaviour of system()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-33363@lists.php.net to get a copy of this message
Andrew Rush wrote: > > On Friday, January 5, 2001, at 04:52 PM, Gabriel Wicke wrote: > > > Both 'exec' and 'system' behave slightly strange (shell scripts for > > example don't run)- is there a possibility to change this via php.ini? > > replying via direct mail, not the list. almost missed this cuz you replied to the list. > > what do you mean by strange? i noticed that none of the apps in the ImageMagick package return > any data to PHP if you use system, but they seem to execute fine... > > have a great day, > andy Hi Andy, it must be something with the searchpath of the normal shell versus the virtual php shell. Mogrify only work when called with the full path to the executable, shellscripts don't work at all. I also tried to call a perl script called igal to create an image gallery (igal in turn calls mogrify to create thumbs). Igal executes, but mogrify won't create the thumbs and the image sizes are not recognized (usually done via a perl module). I remember an option 'current directory in searchpath' for the normal shell, but i guess that wouldn't affect the php calls. I'm running Suse 7.0 as root, apache runs as wwwrun, so i guess the php calls also run as wwwrun. Am i the only one with this problem? Cheers Gabriel

« previous php.general (#33363) next »