Warning: shell_exec(): Cannot execute using backquotes

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
visionmaster
Forum Contributor
Posts: 139
Joined: Wed Jul 14, 2004 4:06 am

Warning: shell_exec(): Cannot execute using backquotes

Post 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
Post Reply