• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 681
  • 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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