php-windows Digest 30 Dec 2001 13:43:06 -0000 Issue 927
Topics (messages 11210 through 11214):
Re: Using Exec on windows
11210 by: David
MySQL problems...
11211 by: VivoAnt
11212 by: David Elliott
11213 by: Pac mon
Performance tuning #2
11214 by: Peter Illes
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hi,
Thanks for your responce!
I've tried passthru(), shell_exec(), backticks and system().
Using shell_exec() I can get out output, when I "End task" on the winzip
program in the background.
All I get is the first 2 lines that Winzip outputs.
When I don't use any parameters, it seems to work fine, just print out the
"Copyright" message.
The command I am trying to execute is similar to this:
c:\\progra~1\\winzip\\winzzip -apr c:\\nameofzip.zip c:\\foldertozip\\
If I "echo" the command and cut n paste it to the "Run" box in windows it
will work fine.
It does not require any input, so it should not be waiting for that.
Any other ideas?
Thanks!,
David
Laserjetter said something on 30 Dec 2001, in php.windows:
> WinZip will need parameters to run from the command line for example to
> tell it what file to unzip. Did you include these in the command
> string? WinZip might be waiting for you to press a key or enter some
> information. It might not be able to find files because the dos window
> could open at any folder. Did you use absolute path names like
> c:\winzip\folder (not ..\winzip)?
> Try using the other executing commands, I think passthru() might work.
>
> LJ
> "David" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> Hi,
>> I'm trying to execute a command line program using exec.
>> I am tring to run a command line interface of Winzip, simpily by
>> executing a string which works when it is typed into the command line.
>>
>> However, PHP just hangs there, I can see the program running the the
>> background, but it does not do anything.
>>
>> When it is run from the command line it takes about 2 seconds to run,
>> but using exec, it will never finish...
>>
>> Does anyone have any idea with this problem?
>>
>> Regards,
>> David
>
>
>
--- End Message ---
--- Begin Message ---
Thanks for the help on my previous question :) I got it to work finally :) After I did
everything I tried to upload phpmyadmin to my server. I tried accessing the page but I
got this error:
Error
MySQL said:
Access denied for user: 'root@localhost' (Using password: NO)
I'm not sure what that means...
--- End Message ---
--- Begin Message ---
Hi VivoAnt
On 30 December 2001 at 01:02:22 -0800 (which was 09:02 where I live) VivoAnt
rearranged electrons to get
V> Thanks for the help on my previous question :) I got it to work finally
V> :) After I did everything I tried to upload phpmyadmin to my server. I
V> tried accessing the page but I got this error:
V> Error
V> MySQL said:
V> Access denied for user: 'root@localhost' (Using password: NO)
V> I'm not sure what that means...
At a guess I would say that you have not configured config.inc.php3 (or
config.inc.php) correctly check the following entries
$cfgServers[1]['host']
$cfgServers[1]['user']
$cfgServers[1]['password']
--
BBFN, _______________________________________________
David | David Elliott | Software Engineer |
_________________________| [EMAIL PROTECTED] | PGP Key ID 0x650F4534 |
| We're riding on the Escalator of Life |
--- End Message ---
--- Begin Message ---
My guess is that you have a password set for the root user in Mysql, but
(from the error statement) I can see that a password was not sent to Mysql
for verification. That being neccessary, of course. I believe David is
referring the the exact variables in phpMyAdmin that would hold the value in
question. Good Luck.
>
>Hi VivoAnt
>
>On 30 December 2001 at 01:02:22 -0800 (which was 09:02 where I live)
>VivoAnt
>rearranged electrons to get
>
>V> Thanks for the help on my previous question :) I got it to work finally
>V> :) After I did everything I tried to upload phpmyadmin to my server. I
>V> tried accessing the page but I got this error:
>
>V> Error
>V> MySQL said:
>
>V> Access denied for user: 'root@localhost' (Using password: NO)
>
>V> I'm not sure what that means...
>
>At a guess I would say that you have not configured config.inc.php3 (or
>config.inc.php) correctly check the following entries
>
>$cfgServers[1]['host']
>$cfgServers[1]['user']
>$cfgServers[1]['password']
>
>--
> BBFN, _______________________________________________
> David | David Elliott | Software Engineer
>|
> _________________________| [EMAIL PROTECTED] | PGP Key ID 0x650F4534
>|
>| We're riding on the Escalator of Life |
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
--- End Message ---
--- Begin Message ---
Hi,
This is the second post of this problem since I did not get any answer for
the first. Please, could someone out there help? Thanks in advance...
I wonder if there is any performance tuning newsgroup/faq/whatever related
to PHP. I searchead to no avail...
Anyway, my current mind boggler is: we are accumulating a large (~400k) XML
response in a string before sending it out by adding little pieces a time
(like 10-20 chars). Now this results in very bad performance -- most
probably due to the fact that the string is enlarged/re-allocated thousands
of times. I would love to pre-allocate a big buffer for the string so that
performance gets better (something like SetLength() in Delphi). How can I do
this?
Xuse me if the answer is much too trivial, I'm a newbie in PHPland :-)
Thanks for any suggestion,
Peter
--- End Message ---