collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Sockets error  (Read 7725 times)

0 Members and 1 Guest are viewing this topic.

Offline karien

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Sockets error
« on: September 25, 2009, 09:32:33 pm »
Hey i dont know whats wrong but i have installed the extentions but still i get this error

PHP Warning: dl(): Dynamically loaded extensions arenĀ“t enable in C:\User\name\Desktop\bot\main.php on line 127
Loading php_sockets.dll failed.Sockets extention required to run this botPHP notice: Undefined variable: pw in c:\User\name\Desktop\bot\StartBot.php on line 100

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Sockets error
« Reply #1 on: September 26, 2009, 12:37:33 am »
You need to enable dl() to allow the bot to dynamically load modules unless you specify them to be loaded in php.ini.

Find the following section in your php.ini and make the apropriate changes
Code: [Select]
; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
; http://php.net/enable-dl
enable_dl = Off
BeBot Founder and Fixer Kingpin

Offline karien

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Sockets error
« Reply #2 on: September 26, 2009, 01:20:16 am »
Got same error when i turned it on as in off;s

Im getting this:
PHP Warning:dl(): Unable to load dynamic library 'C:\php5\php_sockets.dll' - The specified modul could not be found. in C:\Users\name\Desktop\bot\Main.php on line 127
Loading php_sockets.dll failed.Sockets extention required to run this bot.
« Last Edit: September 26, 2009, 02:11:28 pm by karien »

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Sockets error
« Reply #3 on: September 26, 2009, 02:06:47 pm »
'C:php5\php_sockets.dll' should be 'C:\php5\php_sockets.dll'
c:Users\name\Desktop\bot\Main.php should be c:\Users\name\Desktop\bot\Main.php

You are missing a slash in your path someplace now...

There is probly wrong in config or StartBot.bat..
« Last Edit: September 26, 2009, 02:10:39 pm by Getrix »
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline karien

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Sockets error
« Reply #4 on: September 26, 2009, 02:12:14 pm »
nah i forgot to write the \    but anyway its same problem

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Sockets error
« Reply #5 on: September 26, 2009, 02:47:57 pm »
And you are srue you have the php_sockets.dll in C:\php5 folder?
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline karien

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Sockets error
« Reply #6 on: September 26, 2009, 02:52:37 pm »
dont even have a php5 folder there hmm maybe thats the problem  xD

Offline karien

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Sockets error
« Reply #7 on: September 26, 2009, 03:57:43 pm »
got new error
PHP Notice:  Undefined variable: nounderscore in C:\Users\name\Desktop\bot\Sources\MySQL.php on line 89
PHP Warning:  mysql_connect(): Access denied for user 'lake@localhost'@'localhost' (using password: YES) in C:\Users\name\Desktop\bot\Sources\MySQL.php on line 129
« Last Edit: September 26, 2009, 09:14:44 pm by karien »

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Sockets error
« Reply #8 on: September 27, 2009, 02:40:55 am »
What version of BeBot are you running?

PHP Notice:  Undefined variable: nounderscore in C:\Users\name\Desktop\bot\Sources\MySQL.php on line 89
I think this one you can ignore.

Code: [Select]
PHP Warning:  mysql_connect(): Access denied for user 'lake@localhost'@'localhost' (using password: YES) in C:\Users\name\Desktop\bot\Sources\MySQL.php on line 129Is most likely because wrong username or password to the MySQL. Or that you havent setup a MySQL server at all... Check your settings
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline karien

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Sockets error
« Reply #9 on: September 27, 2009, 11:16:16 am »
Reinstalled whole mysql now i get this error

Curl extension loaded
MySQL ERROR(# 1) on query: Cannot connect to the database server at localhost as user lake@localhost!
Access denied for user 'lake@localhost'@'localhost'(using password: Yes)Php notice:Undefined variable: pw in C:\Users\name\Desktop\bot\StartBot.php on line 100

Im using the right password maybe its cause i use windows 7?

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Sockets error
« Reply #10 on: September 27, 2009, 06:37:13 pm »
It seems your username for MySQL is incorrect unless your username is indeed "lake@localhost" (not even sure MySQL allows @ in the username)
BeBot Founder and Fixer Kingpin

Offline karien

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Sockets error
« Reply #11 on: September 27, 2009, 07:51:24 pm »
this is my mysql.conf

Database name
   */
   $dbase = "lake@localhost";

   /*
   Database username
   */
   $user = "lake";

   /*
   Database password
   */
   $pass = "1100QQAA!";

   /*
   Database server (usually localhost)
   */
   $server = "localhost";

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Sockets error
« Reply #12 on: September 27, 2009, 08:14:17 pm »
Are you sure your database is named lake@localhost?
BeBot Founder and Fixer Kingpin

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Sockets error
« Reply #13 on: September 28, 2009, 03:13:05 am »
remove the @localhost

asuming ur database is only name lake

the localhost part is done using the setting $server

Offline karien

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Sockets error
« Reply #14 on: September 28, 2009, 04:10:17 pm »
Now i got another error :(

Curl extension loaded
MySQL ERROR(#1) on query: Unable to select database lake Database not found or insufficient priviledges!
Access denied for user 'lake'@'localhost' to database 'lake'

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 527
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal