473,396 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Call to undefined function socket_create()

Using: Win2003 - IIS6 - PHP5.0

I'm executing a third party script and get this error message:
Fatal error: Call to undefined function socket_create() in C:\Inetpub\XXX on
line 195

After some googleing, I think it is because sockets aren't enabled. I've
opened php.ini and uncommented the line
extension=php_sockets.dll
and restarted the world wide web publishing service, but I still get the
same error message. No clue what to do from here. Does anyone have any
suggestions?

Thanks,

Jack
Nov 23 '05 #1
2 15928
Jack Lindamood wrote:
After some googleing, I think it is because sockets aren't enabled. I've
opened php.ini and uncommented the line
extension=php_sockets.dll
and restarted the world wide web publishing service, but I still get the
same error message. No clue what to do from here. Does anyone have any
suggestions?


Did you set your extension_dir to the right location in php.ini?
The php_sockets.dll needs to be in that directory so the webserver can
load it.

HTH.
Peter.

--
http://www.phpforums.nl
Nov 23 '05 #2
and remember to restart server

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ruben van Engelenburg | last post by:
Hi all, I noticed that when I use socket_create and socket_connect that the socket goes into CLOSE_WAIT state immediately after receiving data. Even when I don't use socket_close on the socket...
9
by: Netocrat | last post by:
Any comments on the correctness of the statements 1, 2a, 2b, 3 and 4 in the code below? If they are correct, then the definition of an object as well as that of an lvalue is broken in C99 by the...
8
by: Cruella DeVille | last post by:
I'm writing a class to handle reading/writing from/to files like this (shortened) lass FileIO{ private $filename; private $mode; private $filePointer; private $dictionary; public function...
20
by: sam_cit | last post by:
Hi Everyone, I have the following code, int main() { int p = {10,20,30,40,50}; int *i = &p; printf("before : %p\n",(void*)i); printf("1 %d %d\n",*++i,*i++);
11
by: Felix Kater | last post by:
Hi, I can compile and run this code (see below) which twice calls the function f, first with too less, second with too much arguments. But is it legal and free of memory leaks and other...
9
by: CryptiqueGuy | last post by:
Consider the variadic function with the following prototype: int foo(int num,...); Here 'num' specifies the number of arguments, and assume that all the arguments that should be passed to this...
4
by: Subash Biswas | last post by:
I keep getting Call to undefined function socket_create(); (Win XPpro on domain) IIS 6.0 PHP 5.2.5 have all extensions loaded; (and also tried enabling line extension=php_sockets.dll in php.ini)...
1
by: inetquestion | last post by:
I am getting this error: "Fatal error: Call to undefined function socket()" even after reinstalling php4 and php5 with the following configuration: ./configure --with-gd=/usr/local --with-mysql...
9
by: Yannick | last post by:
Hi everyone - I am not quite sure to understand what is really going on when a function defined in one translation unit calls a function defined in a different translation unit without knowing...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.