PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > Fatal error: Call to undefined function socket()
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Fatal error: Call to undefined function socket()

Réponse
 
LinkBack Outils de la discussion
Vieux 16/06/2008, 02h21   #1
inetquestion
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Fatal error: Call to undefined function socket()

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 --enable-
libgcc --with-gettext --enable-sockets.

From all the articles I've found on this problem adding --enable-
sockets fixed the problem, but no such luck this time. the script I
was trying to run can be found here: http://www.onlamp.com/php/2001/03/29.../listing1.html

OS: fedora core5.
PHP: v4.4.2, 4.4.8, 5.2.6

-Inet


  Réponse avec citation
Vieux 16/06/2008, 02h37   #2
ljb
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Fatal error: Call to undefined function socket()

inetquestion@hotmail.com wrote:
> 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 --enable-
> libgcc --with-gettext --enable-sockets.
>
> From all the articles I've found on this problem adding --enable-
> sockets fixed the problem, but no such luck this time. the script I
> was trying to run can be found here: http://www.onlamp.com/php/2001/03/29.../listing1.html
>
> OS: fedora core5.
> PHP: v4.4.2, 4.4.8, 5.2.6


There is no such function socket(). It's socket_create(), socket_bind(),
etc. At least it is with PHP 5.2.6 and 4.4.7. I don't know what's up with the
O'Reilly onlamp.com example except it is probably really, really old.
  Réponse avec citation
Vieux 16/06/2008, 14h21   #3
inetquestion
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Fatal error: Call to undefined function socket()

On Jun 15, 9:37 pm, ljb <ljb1...@pobox.com.delete.this> wrote:
> inetquest...@hotmail.com wrote:
> > 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 --enable-
> > libgcc --with-gettext --enable-sockets.

>
> > From all the articles I've found on this problem adding --enable-
> > sockets fixed the problem, but no such luck this time. the script I
> > was trying to run can be found here: http://www.onlamp.com/php/2001/03/29.../listing1.html

>
> > OS: fedora core5.
> > PHP: v4.4.2, 4.4.8, 5.2.6

>
> There is no such function socket(). It's socket_create(), socket_bind(),
> etc. At least it is with PHP 5.2.6 and 4.4.7. I don't know what's up with the
> O'Reilly onlamp.com example except it is probably really, really old.


Thanks, you nailed it. I changed the function names and that fixed
it.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h57.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10181 seconds with 11 queries