03262005 1707 GMT-6

Posted below is the scripts.log from a pages uploaded to a site Im 
working on. I checked the phpinfo and found out that the php version is 
4.3.6 and the server api is CGI. I dont know if this makes a difference 
or not for my question. My local machine uses php version 5.0.3 and the 
server api is Apache 2.0 Handler.

Im working on test pages right now and this is hosted at Yahoo.

My first question is about the first and second line.

To connect to any db I use
    $db_name="dbname";
     $connection=mysql_connect('localhost', 'user', 'pass');
     $db=mysql_select_db($db_name, $connection);

Can someone give me a pointer to this?

Wade

[26-Mar-2005 23:03:09] PHP Warning:  mysql_connect(): Can't connect to local 
MySQL server through socket '/tmp/mysql.sock' (46) in /test/login.php on line 44
[26-Mar-2005 23:03:09] PHP Warning:  mysql_select_db(): supplied argument is 
not a valid MySQL-Link resource in /test/login.php on line 45
[26-Mar-2005 23:03:09] PHP Warning:  mysql_query(): supplied argument is not a 
valid MySQL-Link resource in /test/login.php on line 53
[26-Mar-2005 23:03:09] PHP Warning:  session_start(): 
open(/tmp/sess_5a7bd61287e582a3a6cba501a196e44f, O_RDWR) failed: No such file 
or directory (2) in /test/login.php on line 55
[26-Mar-2005 23:03:09] PHP Warning:  Unknown(): 
open(/tmp/sess_5a7bd61287e582a3a6cba501a196e44f, O_RDWR) failed: No such file 
or directory (2) in Unknown on line 0
[26-Mar-2005 23:03:09] PHP Warning:  Unknown(): Failed to write session data 
(files). Please verify that the current setting of session.save_path is correct 
(/tmp) in Unknown on line 0
%% [Sat Mar 26 15:03:14 2005] GET /test/personal_information.php HTTP/1.1
%% 500 /z/dr/a_cats_desire/us1/test/personal_information.php
%request
Accept: 
application/x-shockwave-flash,text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding: gzip,deflate
Accept-Language: en-us,en;q=0.5
Connection: keep-alive
Host: acatsdesire.com
Keep-Alive: 300
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) 
Gecko/20040803
%response
%stderr
Invalid owner:/test/personal_information.php




[Non-text portions of this message have been removed]



Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to