I wasted a week to figure this silly problem out but ended up understanding the gallery code instead.
Anyway I could not find the solution to the problem anywhere in the forum after searching a lot and since win32 is not supported I could not get any response either.
Ok I was getting the thumbnail(o) error and unable to create the thunbnails etc.
The problem was in the platform/fs_win32.php - as far as win98 is concerned, might not be ture for other win32 platforms.
function fs_exec($cmd, &$results, &$status, $debugfile) {
// We can't redirect stderr with Windows. Hope that we won't need to.
return exec("cmd.exe /c $cmd", $results, $status);
~~~~~~
}
instead of cmd.exe I realised I had to use command (.com) since I did not have cmd.exe
in my system, but the error codes were as expected which was misleading and I was unknowingly always runnng the commands on the dos prompt(command.com) whithout realising this.
return exec("command /c $cmd", $results, $status);
After that I could upload the images successfully and everything else works fine apparantely.
Please let me know if this helped any of the folks out there.
kd
Posts: 487
Thats a good point really. I'm not sure why the use of cmd.exe in
Gallery. Especially since ALL versions of windows currently have the
command.com available.
You might want to fire off an email to Bharat about this and see if
he wants to change the code for the next release.
Posts: 7994
I tried using:
return exec("command /c $cmd", $results, $status);
on my Win2K test box but it didn't work. Anybody have a solution that works for both Win98 and Win2K?