Solved

PHP error - winsock.dll unusable. 1009

Posted on 2006-06-22
8
631 Views
Last Modified: 2008-01-09
Hi,

After writing this code in PHP:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?
$counter = 1;
while ( $counter <= 5 ) {
mail("test6389@hotmail.com", "Test", "\n\n\Test");
$counter = $counter + 1;
}
?>
</body>
</html>

I get this:

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

winsock.dll unusable. 1009

Please tell me what is wrong. I use the latest PHP and the default IIS from windows XP.
0
Comment
Question by:m3lis
  • 5
  • 3
8 Comments
 
LVL 10

Accepted Solution

by:
dnojcd earned 20 total points
ID: 16965493
There may be chances that you winsock.dll files has been corrupted. Reinistall the dll file.and also try adding the "authenticated users" and "ineteractive "in ur users group.

Check the security settings of the swebsite too
0
 

Author Comment

by:m3lis
ID: 16966214
>>>also try adding the "authenticated users" and "ineteractive "in ur users group

how do I do that?
0
 
LVL 10

Expert Comment

by:dnojcd
ID: 16967634
go the manage by right clicking the "My computer"
then Local users and Groups... select groups-- check in the properties if those are allready added. if its not there add them and check
0
 

Author Comment

by:m3lis
ID: 16968085
Please be more specific. I am in "Groups" and I have on the right: Administrators, Backup Operators, Guests, Network Configuration, Power Users, Remote Desktop users, Replicator, Users, HelpServicesGroup. What do I do?
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 10

Expert Comment

by:dnojcd
ID: 16969726
double click the "users" and see if both  the above mentioned groups are allready  included in "users" there.if not add them
0
 

Author Comment

by:m3lis
ID: 16971243
Yes they are both already there, among with ASPNET.
0
 

Author Comment

by:m3lis
ID: 16971732
I just checked and when I write the site with its IP I get this error, but when I write localhost (on the server) it WORKS!! What shall I do?
0
 

Author Comment

by:m3lis
ID: 17012836
I guess I must work with localhost. Thanks for the try dnojcd.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now