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
Php windows system(whois) not working [message #170289] Wed, 27 October 2010 03:11 Go to previous message
Chuck Anderson is currently offline  Chuck Anderson
Messages: 63
Registered: September 2010
Karma:
Member
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?

--
*****************************
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: Sat Nov 30 23:01:58 GMT 2024

Total time taken to generate the page: 0.03924 seconds