Re: Cannot execute using backquotes in safe mode

Florian Maul <[email protected]>
Newsgroups gmane.comp.audio.netjuke.user
Message-ID <[email protected]>
Hello Soheil,

> Warning: Cannot execute using backquotes in safe mode in
> /home/virtual/site3/fst/var/www/html/musics/installer/lib/inc-generate.php
> on line 164
The installer executes the following shell commands to determine where
certain programs are installed in installer/lib/inc-generate.php:

$zip = substr (`which zip`, 0, -1);
$tar = substr (`which tar`, 0, -1);
$stuff = substr (`which stuff`, 0, -1);
$vorbiscomment = substr (`which vorbiscomment`, 0, -1);

Apparently your php is configured in safe-mode which doesn't allow the
backticks `` to be used to execute shell-commands. You can either try
to replace to code with the following commands....

$zip = substr (exec("which zip"), 0, -1);
$tar = substr (exec("which tar"), 0, -1);
$stuff = substr (exec("which stuff"), 0, -1);
$vorbiscomment = substr (exec("which vorbiscomment"), 0, -1);

... or edit your php.ini and set:
safe_mode  = Off

.. or create a .htaccess file in your netjuke dir with this setting.

Florian <[email protected]>



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.