• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 671
  • Last Modified:

PHP error - winsock.dll unusable. 1009

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
m3lis
Asked:
m3lis
  • 5
  • 3
1 Solution
 
dnojcdCommented:
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
 
m3lisAuthor Commented:
>>>also try adding the "authenticated users" and "ineteractive "in ur users group

how do I do that?
0
 
dnojcdCommented:
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
m3lisAuthor Commented:
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
 
dnojcdCommented:
double click the "users" and see if both  the above mentioned groups are allready  included in "users" there.if not add them
0
 
m3lisAuthor Commented:
Yes they are both already there, among with ASPNET.
0
 
m3lisAuthor Commented:
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
 
m3lisAuthor Commented:
I guess I must work with localhost. Thanks for the try dnojcd.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now