I got 2 php scripts. ScriptA is calling ScriptB by using shell_exec(php scriptB.php). It works, when I call scriptA from command line. When I call scriptA from the browser I have problems in sciptB. It calls scriptB but scriptB can't run mysql_connect. It says "undefined function". I know that mysql_ is deprecated, I will fix this to mysqli_ soon.
I do not have this problem, when I run scriptA from command line. So I think it's something with permissions..
The thing is, when calling scriptA by browser: scriptA actually calls scriptB, but then in scripB it says "undefined function for mysql_connect". When I call scriptA from command line, it works...
Somebody an idea?