Search found 3 matches
- Wed Jul 06, 2005 8:43 pm
- Forum: PHP - Code
- Topic: Getting performance info from Windows using w32api?
- Replies: 1
- Views: 316
Getting performance info from Windows using w32api?
Hi, I am trying to use the w32api functions to access Windows performance data. I tried copying the example in the manual (which says it is removed to PECL as of 5.1 - I am on 5.0.4, and PECL has no sign of the library anyway). Here is some example code (the code is appropriately wrapped in html): <...
- Fri Jul 01, 2005 1:35 pm
- Forum: PHP - Code
- Topic: Problems with Windows long filenames with shell_exec and `
- Replies: 1
- Views: 325
I figured it out! When there are double quotes in a CMD string, CMD first removes the outermost set of double quotes BEFORE it starts to process the command. Then it processes it just like it was typed in. So, to make this work, I needed to enclose the entire string (including the doubled quoted set...
- Thu Jun 30, 2005 4:51 pm
- Forum: PHP - Code
- Topic: Problems with Windows long filenames with shell_exec and `
- Replies: 1
- Views: 325
Problems with Windows long filenames with shell_exec and `
If I pass a long filename with embedded blanks to shell_exec in Windows and it is properly double-quoted, it works: $cmd = '"C:\Program Files\My Progams\test.exe" --help'; $out = shell_exec($cmd); echo "<pre>".htmlspecialchars($out)."</pre>"; Output of this mini-test pr...