Welcome to Dream.In.Code
Become a PHP Expert!

Join 149,493 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,352 people online right now. Registration is fast and FREE... Join Now!




You don't have 'shell_exec' support in PHP

 
Reply to this topicStart new topic

You don't have 'shell_exec' support in PHP, Failed to use 'shell_exec' in PHP

bizmom
24 Feb, 2007 - 05:45 AM
Post #1

New D.I.C Head
*

Joined: 24 Feb, 2007
Posts: 1


My Contributions
Hello everyone,

Iam new here and need help. I sell a script that requires shell exec
and a customer's error is this:

You don't have 'shell_exec' support in PHP, please check your PHP installation. This function is required.

Warning: shell_exec() has been disabled for security reasons in /home/talkin/public_html/wpm/setup.php on line 319
Failed to use 'shell_exec' in PHP. Please contact your hosting.
Command was:
{ echo 0 && echo $?; } 2>&1
Output:

2 fatal error(s), can't continue.

===========

Is there a workaround for this? Since his hosting will not
allow this.?

Thanks in advance for your help.
Edna

User is offlineProfile CardPM
+Quote Post

eXceed69
RE: You Don't Have 'shell_exec' Support In PHP
24 Feb, 2007 - 06:31 AM
Post #2

"Super Sentai Knight Of DawN"
Group Icon

Joined: 12 Nov, 2006
Posts: 682



Thanked: 1 times
Dream Kudos: 675
My Contributions
Nope, no way around it except to get the host to allow it.
User is offlineProfile CardPM
+Quote Post

yren
RE: You Don't Have 'shell_exec' Support In PHP
24 Feb, 2007 - 07:15 AM
Post #3

New D.I.C Head
*

Joined: 13 Feb, 2007
Posts: 5


My Contributions
QUOTE(eXceed69 @ 24 Feb, 2007 - 07:31 AM) *

Nope, no way around it except to get the host to allow it.


Is it the problem really on the PHP or the server? (cause i thought i saw " You don't have 'shell_exec' support in PHP") biggrin.gif
User is offlineProfile CardPM
+Quote Post

snoj
RE: You Don't Have 'shell_exec' Support In PHP
24 Feb, 2007 - 09:33 AM
Post #4

Fell off the face of the earth
Group Icon

Joined: 31 Mar, 2003
Posts: 3,325



Thanked: 9 times
Dream Kudos: 750
My Contributions
PHP can have any number of limitation set on it by the server admin. This one obviously has taken out shell_exec.

Besides, the sentence "You don't have 'shell_exec' support in PHP" can have connotations other then some feature doesn't exist in any shape or form.
User is offlineProfile CardPM
+Quote Post

Craige
RE: You Don't Have 'shell_exec' Support In PHP
24 Feb, 2007 - 10:06 AM
Post #5

D.I.C Head
**

Joined: 2 Nov, 2006
Posts: 63


My Contributions
Now, I may be wrong, but try doing this:

CODE

<?php

`{ echo 0 && echo $?; } 2>&1 `;

?>


Any string enclosed in `'s (note: they are not quotes) are run as a shell command. So, if the admin has just disabled the function shell_exec, you may still be able to do that.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 05:50PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month