Page 1 of 1

Warning: shell_exec(): Cannot execute using backquotes

Posted: Sat Jul 17, 2004 3:47 am
by visionmaster
Hello,

Error output: Warning: shell_exec(): Cannot execute using backquotes in Safe Mode

I'm trying to run a script on a server where Safe Mode=On. That is why the bellow command shell_exec can not be executed. Since I can't change the php.ini file on the providers webserver, is there any other workaround to get shell_exec to run anyway?

PHP-Code:

Code: Select all

<?php
[...]
$cmd = 'whois -h $whois_server $whois_parameters[$ext] $domainname';
$rawoutput = shell_exec($cmd);
[...]
?>


Danke,
visionmaster