but short names were the culprit.. or at least a solution

From: Date: Wed, 06 Oct 2004 06:57:09 +0000
Subject: but short names were the culprit.. or at least a solution
References: 1 2 3 4 5  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-760@lists.php.net to get a copy of this message
ok now I finally got the mesage ;) can you confirm if this version works (works for me but with my system who knows ~) http://www.firepages.org/stuff/php_win_short.exe (52kb) if it does perhaps someone can fix up this code & apply ? char *args[4], *prog = NULL; char binary_file[] = "php.exe"; char modulepath[_MAX_PATH]; char shortpath[_MAX_PATH]; // Look for php.exe in the same directory as php_win.exe if (GetModuleFileName(NULL, modulepath, _MAX_PATH)) { char *separator_location = strrchr(modulepath, '\\'); if (separator_location) { struct stat statbuf; strcpy(separator_location+1, binary_file); if (stat(modulepath, &statbuf) == 0) { if (((statbuf.st_mode & S_IEXEC) == S_IEXEC)) { //>>needs error checking<<// GetShortPathName( modulepath, shortpath, _MAX_PATH) ; prog = shortpath ; } } } }

« previous php.gtk.dev (#760) next »