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 #170290 is a reply to message #170289] Wed, 27 October 2010 03:16 Go to previous messageGo to previous message
Magno is currently offline  Magno
Messages: 49
Registered: October 2010
Karma:
Member
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?
[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: Sat Nov 30 23:05:28 GMT 2024

Total time taken to generate the page: 0.03834 seconds