vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   In dire need of help, please check [PHP error] (https://vborg.vbsupport.ru/showthread.php?t=52328)

E 04-29-2003 05:51 PM

In dire need of help, please check [PHP error]
 
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /home/fiendwor/public_html/forum/admin/db_mysql.php on line 40

I havent touched this file at all, & I have no clue why it has an error in it.

I went into the file & found line 40 [using EditPlus]

This is line 40

PHP Code:

          $this->link_id=mysql_connect($this->server,$this->user,$this->password); 


& here are the codes surrounding it -

PHP Code:

  function connect() {
    global 
$usepconnect;
    
// connect to db server

    
if ( == $this->link_id ) {
      if (
$this->password=="") {
        if (
$usepconnect==1) {
          
$this->link_id=mysql_pconnect($this->server,$this->user);
        } else {
          
$this->link_id=mysql_connect($this->server,$this->user);
        }
      } else {
        if (
$usepconnect==1) {
          
$this->link_id=mysql_pconnect($this->server,$this->user,$this->password);
        } else {
          
$this->link_id=mysql_connect($this->server,$this->user,$this->password);
        }
      }
      if (!
$this->link_id) {
        
$this->halt("Link-ID == false, connect failed");
      }
      if (
$this->database!="") {
        if(!
mysql_select_db($this->database$this->link_id)) {
          
$this->halt("cannot use database ".$this->database);
        }
      }
    }
  } 

^ That is from line 25 down to 53.
line 53 is just a space :-\

I'm not too familiar w/ PHP,
please help if you can,
I cant stand members messaging me asking "is the site down??"
lol, Thanks in advance - peace.

grog6 04-29-2003 05:59 PM

Isn't it a server problem ?!

E 04-29-2003 06:05 PM

It probably was,
I decided to refresh to see if it was still working & boom..
It worked.
I was like..... how the????
lol, Thanks for the help though,
the sites up & running now
peace.


All times are GMT. The time now is 01:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01813 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete