Disabled shell_exec()
Posted by: jakesully123456 (---.range86-135.btcentralplus.com)
Date: July 30, 2015 09:02PM

Hello,
I need to use shell_exec() but it always returns nothing.
I have checked the php.ini and safemode is not enabled (doesn't exist since php 5.4) and also, shell_exec() is not in disabled functions. exec doesn't work and backticks do not work.
Please help!

Options: ReplyQuote
Re: Disabled shell_exec()
Posted by: RiggsFolly (---.as43234.net)
Date: July 30, 2015 09:07PM

Hi jake,

See shell_exec manual page

Specifically the NOTE

Quote

Note:

This function can return NULL both when an error occurs or the program produces no output. It is not possible to detect execution failures using this function. exec() should be used when access to the program exit code is required.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Disabled shell_exec()
Posted by: jakesully123456 (---.range86-135.btcentralplus.com)
Date: July 30, 2015 09:20PM

There is definitely output. The program definitely executes.

Options: ReplyQuote
Re: Disabled shell_exec()
Posted by: RiggsFolly (---.as43234.net)
Date: July 30, 2015 11:37PM

This is not really the site for assistance with PHP programming. This is now a WAMPServer issue

Try StackOverflow.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.