Hi everyone,
I have a very strange problem when trying to run a simple php script:
ob_start();
$e=chdir("/usr/lib") or die("Could not change directory");
echo getcwd();
ob_end_flush();
when I run it through command line, it gives me /usr/lib/ but when I run it through the browser it always shows my current web directory where the script is located. I tried using exec(), system(), passthru() etc. All work through command line but through a browser I get no message (no errors as well as the code after these work normally). I am running Fedora Core 3.0 with Plesk.
Many thanks,
Hari