Undefined > Undefiniert.
Sprich er finded die Function nicht da sie nicht definiert ist.
Um testen zu können ob es allgemein da ist lege diesen Code in eine .php datei und rufe sie über den Browser auf:
PHP Code:
<?php
if (!extension_loaded('sockets')) {
die('The sockets extension is not loaded.');
}
?>
Wenn gesagt wird "The Sockets extension is not loaded" dann gehe in deine PHP.ini und suche nach:
Code:
;extension=php_sockets.dll
Dies änderst du nun auf das hier:
Code:
extension=php_sockets.dll
(also das
; vorne weg)
Speichern und den Webserver restarten.
Sollte der Text nicht in der php.ini stehen musst du dies machen:
Quote:
|
Originally Posted by php.net
If that line isn't in there, you probably have a custom php install. In that case you need to add the line to php.ini and download the sockets dll.
In order to get the php_sockets.dll:
- Download the regular php zip file from
- Find the dll in the ext directory
- Extract the php_sockets.dll to the ext directory of your install
(probably at c:\program files\PHP\ext)
|
mfg