FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Php windows system(whois) not working
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Php windows system(whois) not working [message #170291 is a reply to message #170290] Wed, 27 October 2010 04:54 Go to previous messageGo to previous message
Chuck Anderson is currently offline  Chuck Anderson
Messages: 63
Registered: September 2010
Karma:
Member
Magno wrote:
> On 10/27/2010 12:11 AM, Chuck Anderson wrote:
>
>> I downloaded a Windows version of whois.
>> Whois v1.01 from technet.microsoft.com.
>>
>> It works fine from a windows command line, but when I try to run it from
>> Php running as an Apache module (Windows XP - Apache2.2.16 PHP 5.2.14),
>> it will not execute. The page never finishes loading.
>>
>> i.e.,
>>
>> <?php
>> system("whois example.com", $retval)
>> ?>
>>
>> ... saved as a file and run under localhost it never stops loading
>> (browser just "sits and spins").
>>
>> If I use Php from a Windows command line it works:
>> php -r "system(\"whois example.com\", $retval);"
>> I get the expected whois output.
>>
>> I have another Windows executable that does this, too (Clamp - Command
>> line Win Amp controls). From a Windows Command window it works. Using a
>> system call in Php from the windows command line, it works. If I try to
>> run it from localhost using the Php Apache module, it does the same as
>> above. The page never stops trying to load.
>>
>> I have searched high and low and can not find an explanation for either
>> of these and am fishing for ideas. What could it be?
>>
>>
>
> Never tried any of this in Windows... but did you try checking the
> Apache logs?
>

I looked in the logs and there is nothing ... just a POST request
(Post'ed form data to the script).

.............. Then ..... it just started working.

I've just seen something else kind of strange now, though. I get an
error from the Windows command line when running an exec call if there
is another exec call in progress. At least that's how it appears.

There's some strange interaction going on here that I don't understand.
At this point I'm thinking that it has little to do with Php, but if
anyone has any ideas .... I'm open to them. Otherwise, I think I need
to tinker with this some more and see where the problem might really be.

Thanks for listening (and responding).

--
*****************************
Chuck Anderson • Boulder, CO
http://www.cycletourist.com
Turn Off, Tune Out, Drop In
*****************************
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Array_multisort help please
Next Topic: array_merge vs just doing it
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Apr 07 00:55:42 GMT 2025

Total time taken to generate the page: 0.04488 seconds