|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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. |
|
![]() |
| Outils de la discussion | |
|
|