Re: [PHP] mysql_connect noob question

2013-04-24 Thread Richard Quadling
Completely different function call(). mysql_connect() - the port is part of the host. *server* The MySQL server. It can also include a port number. e.g. hostname:port or a path to a local socket e.g. :/path/to/socket for the localhost. If the PHP directive

Re: [PHP] mysql_connect noob question

2013-04-23 Thread Tedd Sperling
On Apr 21, 2013, at 3:33 PM, Glob Design Info i...@globdesign.com wrote: What question did I not answer? That proves that you're not listening -- you are total waste of time for anyone trying to help. Welcome to my ignore file. tedd _ tedd.sperl...@gmail.com

Re: [PHP] mysql_connect noob question

2013-04-23 Thread Glob Design Info
Well all, it turns out the *correct* answer to my question, which no one answered, and which only degenerated into a kindergarten-like argument is: You need to add the port # to the *end* of the mysql_connect() call. i.e.: $link = mysqli_connect( $host, user, pass, $database, $port ); Glad

Re: [PHP] mysql_connect noob question

2013-04-23 Thread Jim Giner
On 4/23/2013 10:39 AM, Glob Design Info wrote: Well all, it turns out the *correct* answer to my question, which no one answered, and which only degenerated into a kindergarten-like argument is: You need to add the port # to the *end* of the mysql_connect() call. i.e.: $link = mysqli_connect(

Re: [PHP] mysql_connect noob question

2013-04-22 Thread Jim Giner
On 4/21/2013 7:35 PM, Glob Design Info wrote: A very complex solution that takes time to learn, configure, and install, vs. a single file I can toss on the server. Over-engineering is what is daft. As has been pointed out to you - your simplistic approach to this task is going to cost you

Re: [PHP] mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
On Sat, Apr 20, 2013 at 9:37 PM, Glob Design Info i...@globdesign.com wrote: Night now this is just a test server. On the real thing I'll do it right. On 4/20/13 10:58 AM, Tedd Sperling wrote: On Apr 20, 2013, at 11:44 AM, Stuart Dallas stu...@3ft9.com wrote: On 20 Apr 2013, at 16:25, Jim

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Tedd Sperling
On Apr 21, 2013, at 9:32 AM, Stuart Dallas stu...@3ft9.com wrote: However, a more important question for me is why you are doing this. You say you are aware of the security implications, and that you'll deal with that later, but I question how you're going to deal with it. What exactly are

Re: [PHP] mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
On Sun, Apr 21, 2013 at 9:12 AM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Apr 21, 2013, at 9:32 AM, Stuart Dallas stu...@3ft9.com wrote: However, a more important question for me is why you are doing this. You say you are aware of the security implications, and that you'll deal with

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Stuart Dallas
On 21 Apr 2013, at 15:46, tamouse mailing lists tamouse.li...@gmail.com wrote: On Sun, Apr 21, 2013 at 9:12 AM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Apr 21, 2013, at 9:32 AM, Stuart Dallas stu...@3ft9.com wrote: However, a more important question for me is why you are doing this.

Re: [PHP] mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
On Sun, Apr 21, 2013 at 9:49 AM, Stuart Dallas stu...@3ft9.com wrote: On 21 Apr 2013, at 15:46, tamouse mailing lists tamouse.li...@gmail.com wrote: On Sun, Apr 21, 2013 at 9:12 AM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Apr 21, 2013, at 9:32 AM, Stuart Dallas stu...@3ft9.com

Re: [PHP] mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
On Fri, Apr 19, 2013 at 3:43 PM, Glob Design Info i...@globdesign.com wrote: I know this has probably been answered already. When I pass a user name and password from a form to my PHP script and then pass those to mysql_connect it doesn't connect. When I paste those exact same values into

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Glob Design Info
What question did I not answer? I am developing a web portal that has to display the tables in the DB via a form/script. The web page has a login with user and password. Right now I am just trying to connect. On Apr 21, 2013, at 7:12 AM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Apr

Re: [PHP] mysql_connect noob question

2013-04-21 Thread David OBrien
Not meaning to beat the proverbial dead horse I am developing a web portal that has to display the tables in the DB via a form/script. The web page has a login with user and password. Right now I am just trying to connect. This for a commercial app - the client wants both an API connect via

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Glob Design Info
Except that a) I already have my form and script done, b) don't have time to learn phpMyAdmin, c) want to know why the script doesn't work as-is. On Apr 21, 2013, at 12:46 PM, David OBrien dgobr...@gmail.com wrote: Not meaning to beat the proverbial dead horse I am developing a web portal

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Glob Design Info
One other thing I noted in the FAQ was this: Dots in incoming variable names Typically, PHP does not alter the names of variables when they are passed into a script. However, it should be noted that the dot (period, full stop) is not a valid character in a PHP variable name. For the reason,

Re: [PHP] mysql_connect noob question

2013-04-21 Thread David OBrien
On Sun, Apr 21, 2013 at 6:01 PM, Glob Design Info i...@globdesign.comwrote: One other thing I noted in the FAQ was this: Dots in incoming variable names Typically, PHP does not alter the names of variables when they are passed into a script. However, it should be noted that the dot (period,

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Stuart Dallas
On 21 Apr 2013, at 22:43, Glob Design Info i...@globdesign.com wrote: Except that a) I already have my form and script done, b) don't have time to learn phpMyAdmin, c) want to know why the script doesn't work as-is. You have multiple database users who will need to do this, or just one

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Stuart Dallas
On 21 Apr 2013, at 23:01, Glob Design Info i...@globdesign.com wrote: I should note my user name in this case *is* an email address, however the dots in that address are *not* being converted to underscores as mentioned (at least not visibly). This could be the culprit. Try using a username

Re: [PHP] mysql_connect noob question

2013-04-21 Thread David OBrien
I should note my user name in this case *is* an email address, however the dots in that address are *not* being converted to underscores as mentioned (at least not visibly). I just created a free account there and the email says my username is dgobr...@gmail.com but I connected to it from

Re: [PHP] mysql_connect noob question

2013-04-21 Thread David OBrien
In fact using the @gmail.com part added on gives me the same error as the OP I think their welcome email needs tweaking.. try it without the domain added on On Sun, Apr 21, 2013 at 6:56 PM, David OBrien dgobr...@gmail.com wrote: I should note my user name in this case *is* an email address,

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Glob Design Info
Except that I want to use my script and form - precisely because I have already sunk time into it. I'm not going to sink *more* time into something that could potentially create *another* problem. I want the script to work - as it should if PHP is 1/2 what it's cracked up to be. If not, I'll

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Glob Design Info
Tried that. Still didn't work. I appears to be the port. On 4/21/13 3:40 PM, Stuart Dallas wrote: On 21 Apr 2013, at 23:01, Glob Design Info i...@globdesign.com wrote: I should note my user name in this case *is* an email address, however the dots in that address are *not* being converted

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Glob Design Info
SUCCESS! However. if ( $_REQUEST['Submit'] ) { makes it work (using my own form button ID). Why it doesn't work without this on my machine is beyond me. But it doesn't. Could it be somehow there is something about accessing the $_REQUEST that changes something? I am baffled as to the

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Glob Design Info
Even more strange: It doesn't work from the form with or without the domain (but on the command line it does), but.. IF I add the $_REQUEST access *and* use the user that the *MySQL* install has, and *not* the xeround user name (my email), then it *does* work! WEIRD. On 4/21/13 3:59

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Stuart Dallas
On 22 Apr 2013, at 00:16, Glob Design Info i...@globdesign.com wrote: Except that I want to use my script and form - precisely because I have already sunk time into it. I'm not going to sink *more* time into something that could potentially create *another* problem. The idea of sunk time is

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Glob Design Info
A very complex solution that takes time to learn, configure, and install, vs. a single file I can toss on the server. Over-engineering is what is daft. On 4/21/13 4:33 PM, Stuart Dallas wrote: On 22 Apr 2013, at 00:16, Glob Design Info i...@globdesign.com wrote: Except that I want to use my

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Glob Design Info
Ever heard of the MySQL C Connector? http://www.karlkraft.com/index.php/2010/06/02/mysql-and-objective-c/ :-) On 4/21/13 4:33 PM, Stuart Dallas wrote: On 22 Apr 2013, at 00:16, Glob Design Info i...@globdesign.com wrote: Except that I want to use my script and form - precisely because I

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Stuart Dallas
On 22 Apr 2013, at 00:35, Glob Design Info i...@globdesign.com wrote: A very complex solution that takes time to learn, configure, and install, vs. a single file I can toss on the server. Over-engineering is what is daft. Building your house by making your own bricks is daft. Using bricks

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Stuart Dallas
On 22 Apr 2013, at 00:36, Glob Design Info i...@globdesign.com wrote: Ever heard of the MySQL C Connector? http://www.karlkraft.com/index.php/2010/06/02/mysql-and-objective-c/ That would be Objective-C, not C. I have used libmysqlclient extensively, but there's a lot more to a MySQL

Re: [PHP] mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
After all this, the OP remains unenlightened. This is just a waste of time. You are doing this wrong. There are existing tools that do what your client wants. A command line tool is not the same as the php library. are all met with I don't want to learn, just tell me what isn't working. Too bad.

Re: [PHP] mysql_connect noob question

2013-04-20 Thread tamouse mailing lists
No, that's for writing safe html output. If the user or password contains special chars, sending them through htmlspecialchars would turn them into html entities. i doubt you want that. I'm at a loss here. The only thing Ican think of is to try something like this at the top of the script: ?php

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Matijn Woudt
On Sat, Apr 20, 2013 at 10:36 AM, tamouse mailing lists tamouse.li...@gmail.com wrote: No, that's for writing safe html output. If the user or password contains special chars, sending them through htmlspecialchars would turn them into html entities. i doubt you want that. I'm at a loss

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Glob Design Info
Thanks for that good suggestion. I tried that and as expected, the passed variables are coming through exactly as expected: array(3) { [user]= string(3) joe [password]= string(11) complacency [login]= string(5) Login } The bottom one seems to be the submit button's tag. I'm at a

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Glob Design Info
Goog suggestion. The user name is an email address so it does contain @. Password is all pure lowercase ASCII. Wonder if the shift-2 is causing the problem? On 4/20/13 4:44 AM, Matijn Woudt wrote: On Sat, Apr 20, 2013 at 10:36 AM, tamouse mailing lists tamouse.li...@gmail.com wrote: No,

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Tedd Sperling
On Apr 19, 2013, at 4:43 PM, Glob Design Info i...@globdesign.com wrote: I know this has probably been answered already. When I pass a user name and password from a form to my PHP script and then pass those to mysql_connect it doesn't connect. When I paste those exact same values into

Re: [PHP] mysql_connect noob question

2013-04-20 Thread David OBrien
$form_user = $_POST[ 'user' ]; $form_pass = $_POST[ 'password' ]; # Connect to remote DB $LINK = mysql_connect( $host, $form_user, $form_pass ); And yes, my $host param is correct. Have you tried $LINK = mysql_connect( $host, $form_user, $form_pass ); just for the heck of it?

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Jim Giner
Why are you allowing anyone to connect to your database from a form? Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com A little OT, but... What do you mean by this question? How do you check someone's credentials if not by connecting to a db to verify the

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Stuart Dallas
On 20 Apr 2013, at 16:25, Jim Giner jim.gi...@albanyhandball.com wrote: Why are you allowing anyone to connect to your database from a form? A little OT, but... What do you mean by this question? How do you check someone's credentials if not by connecting to a db to verify the login?

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Jim Giner
On 4/20/2013 11:44 AM, Stuart Dallas wrote: On 20 Apr 2013, at 16:25, Jim Giner jim.gi...@albanyhandball.com wrote: Why are you allowing anyone to connect to your database from a form? A little OT, but... What do you mean by this question? How do you check someone's credentials if not by

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Glob Design Info
Same error. That just turns those into string literals. On 4/20/13 5:48 AM, David OBrien wrote: $form_user = $_POST[ 'user' ]; $form_pass = $_POST[ 'password' ]; # Connect to remote DB $LINK = mysql_connect( $host, $form_user, $form_pass ); And yes, my $host param is correct. Have you tried

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Tedd Sperling
On Apr 20, 2013, at 11:44 AM, Stuart Dallas stu...@3ft9.com wrote: On 20 Apr 2013, at 16:25, Jim Giner jim.gi...@albanyhandball.com wrote: Why are you allowing anyone to connect to your database from a form? A little OT, but... What do you mean by this question? How do you check

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Glob Design Info
Night now this is just a test server. On the real thing I'll do it right. On 4/20/13 10:58 AM, Tedd Sperling wrote: On Apr 20, 2013, at 11:44 AM, Stuart Dallas stu...@3ft9.com wrote: On 20 Apr 2013, at 16:25, Jim Giner jim.gi...@albanyhandball.com wrote: Why are you allowing anyone to

[PHP] mysql_connect noob question

2013-04-19 Thread Glob Design Info
I know this has probably been answered already. When I pass a user name and password from a form to my PHP script and then pass those to mysql_connect it doesn't connect. When I paste those exact same values into mysql_connect as string literals it works. Can anyone tell me why this happens?

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Matijn Woudt
On Fri, Apr 19, 2013 at 10:43 PM, Glob Design Info i...@globdesign.comwrote: I know this has probably been answered already. When I pass a user name and password from a form to my PHP script and then pass those to mysql_connect it doesn't connect. When I paste those exact same values into

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Glob Design Info
Already did that. I printed the form values in the PHP script after they are received and they print exactly as entered in the form. Even checked for extra spaces. Any functions I can pass the values to to remove the magic quotes? Thanks, On 4/19/13 1:47 PM, Matijn Woudt wrote: On Fri, Apr

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Matijn Woudt
On Fri, Apr 19, 2013 at 10:59 PM, Glob Design Info i...@globdesign.comwrote: Already did that. I printed the form values in the PHP script after they are received and they print exactly as entered in the form. Even checked for extra spaces. Any functions I can pass the values to to remove

Re: [PHP] mysql_connect noob question

2013-04-19 Thread tamouse mailing lists
On Fri, Apr 19, 2013 at 3:43 PM, Glob Design Info i...@globdesign.com wrote: I know this has probably been answered already. When I pass a user name and password from a form to my PHP script and then pass those to mysql_connect it doesn't connect. When I paste those exact same values into

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Glob Design Info
Nope, quotes are not visible in the output. Both the HTML and the script it calls are shown below. They are in 2 separate files. The variable names in both are user and password. The data comes through to the PHP script fine - if I print them I see exactly what I typed in the form, but when I

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Glob Design Info
Sorry. The error displayed is: *Warning*: mysql_connect() [function.mysql-connect http://localhost/wservices/function.mysql-connect]: Access denied for user 'user'@'ip70-162-142-180.ph.ph.cox.net' (using password: YES) in */Library/WebServer/Documents/wservices/connect.php* on line *29*

Re: [PHP] mysql_connect noob question

2013-04-19 Thread David Robley
Glob Design Info wrote: Sorry. The error displayed is: *Warning*: mysql_connect() [function.mysql-connect http://localhost/wservices/function.mysql-connect]: Access denied for user 'user'@'ip70-162-142-180.ph.ph.cox.net' (using password: YES) in

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Glob Design Info
They aren't on the same server. The DB is on xeround.com, the web server is localhost. The host value is set and working. If I hard-code the user and password values in the mysql_connect() call and leave the host value as is, it connects fine. Only passing the user and password from the form

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Jim Giner
On 4/19/2013 9:33 PM, Glob Design Info wrote: They aren't on the same server. The DB is on xeround.com, the web server is localhost. The host value is set and working. If I hard-code the user and password values in the mysql_connect() call and leave the host value as is, it connects fine. Only

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Glob Design Info
No, no spaces. I am wondering if I need to use htmlspecialchars() On Apr 19, 2013, at 7:17 PM, Jim Giner jim.gi...@albanyhandball.com wrote: On 4/19/2013 9:33 PM, Glob Design Info wrote: They aren't on the same server. The DB is on xeround.com, the web server is localhost. The host value

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Jim Giner
On 4/20/2013 12:23 AM, Glob Design Info wrote: No, no spaces. I am wondering if I need to use htmlspecialchars() On Apr 19, 2013, at 7:17 PM, Jim Giner jim.gi...@albanyhandball.com wrote: On 4/19/2013 9:33 PM, Glob Design Info wrote: They aren't on the same server. The DB is on xeround.com,

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Glob Design Info
Dunno. The code definitely has the underscore. On Apr 19, 2013, at 9:11 PM, Jim Giner jim.gi...@albanyhandball.com wrote: On 4/20/2013 12:23 AM, Glob Design Info wrote: No, no spaces. I am wondering if I need to use htmlspecialchars() On Apr 19, 2013, at 7:17 PM, Jim Giner

Re: [PHP] mysql_connect slowness

2008-04-29 Thread Joe Harman
Hi Waynn! have you ever tried using 1. sql_cache SELECT SQL_CACHE * FROM table .. I use this alot... although you have to have mysql cache enable in the sql config file... your webhost can tell you if it is on or not 2. make indexes for your tables here is a good article

Re: [PHP] mysql_connect slowness

2008-04-28 Thread Aschwin Wesselius
Waynn Lue wrote: Our site has been slowing down dramatically in the last few days, so I've been trying to figure out why. I ran some profiling scripts on our site and saw that we're spending between 3-9 seconds on mysql_connect. Then I connected to our db and saw that there were over 100

[PHP] mysql_connect slowness

2008-04-27 Thread Waynn Lue
Our site has been slowing down dramatically in the last few days, so I've been trying to figure out why. I ran some profiling scripts on our site and saw that we're spending between 3-9 seconds on mysql_connect. Then I connected to our db and saw that there were over 100 connections at the time,

Re: [PHP] mysql_connect slowness

2008-04-27 Thread Chris
Waynn Lue wrote: Our site has been slowing down dramatically in the last few days, so I've been trying to figure out why. I ran some profiling scripts on our site and saw that we're spending between 3-9 seconds on mysql_connect. Then I connected to our db and saw that there were over 100

[PHP] Re: [?? Probable Spam] [PHP] MYSQL_CONNECT vs MYSQL_PCONNECT

2006-06-20 Thread Andrei
As you didn't mentioned what you use your queries for, maybe read the manual? Andy Juanjo Pascual wrote: How can i know which of both is better to use each time? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MYSQL_CONNECT vs MYSQL_PCONNECT

2006-06-20 Thread Juanjo Pascual
How can i know which of both is better to use each time? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MYSQL_CONNECT vs MYSQL_PCONNECT

2006-06-20 Thread Robert Cummings
On Tue, 2006-06-20 at 12:34, Juanjo Pascual wrote: How can i know which of both is better to use each time? Use mysql_pconnect() if the connection overhead is large. This is usually the case if the database is off on a remote server somewhere in lala land. Remote servers within your LAN don't

Re: [PHP] MYSQL_CONNECT vs MYSQL_PCONNECT

2006-06-20 Thread Joe Wollard
If you're not sure you should probably stick with mysql_connect() - otherwise you could end up bogging down mysql with way more connections than you need if you're not careful. On Jun 20, 2006, at 12:34 PM, Juanjo Pascual wrote: How can i know which of both is better to use each time? --

[PHP] mysql_connect

2005-09-12 Thread blackwater dev
Hello, I have a strange bug I can't figure out. I am trying to use a third party library and it is throwing errors: Fatal error: Call to undefined function: mysql_pconnect() This doesn't make sense to me as I have other code on that box that uses mysql_pconnect() with no problem. Why would

[PHP] mysql_connect() error

2005-09-03 Thread php general help
Hi guys hope you can all help me here. im in the middle of making a script ( im still quite new), anyway im getting this error Parse error: syntax error, unexpected T_STRING in c:\wamp\www\cms\header.inc on line 5 and on line 5 is mysql_connect($dbhost, $dbusername, $dbpassword) , i know its

[PHP] mysql_connect() error

2005-09-03 Thread php general help
Hi guys hope you can all help me here. im in the middle of making a script ( im still quite new), anyway im getting this error Parse error: syntax error, unexpected T_STRING in c:\wamp\www\cms\header.inc on line 5 and on line 5 is mysql_connect($dbhost, $dbusername, $dbpassword) , i know its the

Re: [PHP] mysql_connect() error

2005-09-03 Thread Cristea Adrian
Are you sure that is the 5-th line of your script? please give us first 1-10 lines (remove confidential data) for debuging... On 9/3/05, php general help php-general@lists.php.net wrote: Hi guys hope you can all help me here. im in the middle of making a script ( im still quite new), anyway

Re: [PHP] mysql_connect vs mysql_pconnect

2004-11-27 Thread Jad Madi
http://www.google.com/search?lr=ie=UTF-8oe=UTF-8q=mysql_connect%20vs%20mysql_pconnect On Fri, 26 Nov 2004 19:55:29 +0100, fabien champel [EMAIL PROTECTED] wrote: hello, I do not know when I must use mysql_pconnect instead of the mysql_connect :( what are the real advantages of persistent

Re: [PHP] mysql_connect vs mysql_pconnect

2004-11-27 Thread fabien champel
ok, i'm sorry, i was probably too tired. i've search the doc, but didn't found this page : http://www.php.net/manual/en/features.persistent-connections.php will me excuse me ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysql_connect vs mysql_pconnect

2004-11-26 Thread fabien champel
hello, I do not know when I must use mysql_pconnect instead of the mysql_connect :( what are the real advantages of persistent connections, please ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect vs mysql_pconnect

2004-11-26 Thread Robby Russell
On Fri, 2004-11-26 at 19:55 +0100, fabien champel wrote: hello, I do not know when I must use mysql_pconnect instead of the mysql_connect :( what are the real advantages of persistent connections, please ? http://www.google.com/search?q=advantages+of+persistent+connection --

Re: [PHP] mysql_connect

2004-11-04 Thread Manoj Kr. Sheoran
-general [EMAIL PROTECTED] Sent: Thursday, November 04, 2004 11:52 AM Subject: [PHP] mysql_connect I am having trouble connecting to a database on another server. I have the following for the connection, but it seems to be overriding the value for the $host variable, and replacing

[PHP] mysql_connect

2004-11-03 Thread Ben Miller
I am having trouble connecting to a database on another server. I have the following for the connection, but it seems to be overriding the value for the $host variable, and replacing it with localhost. Anyone got any ideas? $host=domain.com; $user=username;

Re: [PHP] mysql_connect

2004-11-03 Thread Jason Wong
On Thursday 04 November 2004 06:22, Ben Miller wrote: I am having trouble connecting to a database on another server. I have the following for the connection, but it seems to be overriding the value for the $host variable, and replacing it with localhost. Anyone got any ideas?

RE: [PHP] mysql_connect

2004-11-03 Thread Ben Miller
] Sent: Thursday, November 04, 2004 7:47 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] mysql_connect On Thursday 04 November 2004 06:22, Ben Miller wrote: I am having trouble connecting to a database on another server. I have the following for the connection, but it seems to be overriding the value

Re: [PHP] mysql_connect

2004-11-03 Thread raditha dissanayake
Ben Miller wrote: Guess that would have been helpful. Warning: mysql_connect(): Access denied for user: '[EMAIL PROTECTED]' (Using password: YES) in /home/virtual/site2/fst/var/www/html/test/global.php on line 74 Couldn't connect to server. That does not mean that the $host is being replaced by

Re: [PHP] mysql_connect

2004-11-03 Thread Jason Wong
On Thursday 04 November 2004 06:47, Ben Miller wrote: Please do not top post. Guess that would have been helpful. Warning: mysql_connect(): Access denied for user: '[EMAIL PROTECTED]' (Using password: YES) in /home/virtual/site2/fst/var/www/html/test/global.php on line 74 Couldn't connect

Re: [PHP] mysql_connect does not connect

2004-09-22 Thread Jason Wong
On Wednesday 22 September 2004 03:43, Chris Dowell wrote: Sam Hobbs wrote: I am not assuming; that is why I am asking this question. You really can say the same thing except without the emotions. You can simply state the fact that as far as you know it is not a PHP problem. It really,

Re: [PHP] mysql_connect does not connect

2004-09-21 Thread Chris Dowell
[snippy] Sam Hobbs wrote: Um.. you do realize you have more problems than php not being able to connect to the database. This is the type of unproductive comment that causes problems. The only reason you are saying this is because you are desperate to make me wrong. You have exhausted

RE: [PHP] mysql_connect does not connect

2004-09-20 Thread Jay Blanchard
[snip] I definitely mind. I don't believe in rewarding bad behavior. It is reasonable to contribute to the productive development of solutions, but the attitude in this group is not productive. I have the impression that the real reason you want answers is so that you can continue in unproductive

Re: [PHP] mysql_connect does not connect

2004-09-20 Thread Steve Brown
I definitely mind. I don't believe in rewarding bad behavior. It is reasonable to contribute to the productive development of solutions, but the attitude in this group is not productive. I have the impression that the real reason you want answers is so that you can continue in unproductive

Re: [PHP] mysql_connect does not connect

2004-09-20 Thread Carlos Souza
Sam Hobbs wrote: Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Would you mind spilling the beans? I'm sure everyone is dying to know what the resolution of this thread is. I definitely mind. I don't believe in rewarding bad behavior. It is reasonable to contribute to

Re: [PHP] mysql_connect does not connect

2004-09-19 Thread Sam Hobbs
Raditha Dissanayake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sam Hobbs wrote: I have posted over 12,000 messages in the CodeGuru.com Visual C++ forum, Do you have a life ? I hope the moderators protest posts such as this. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] mysql_connect does not connect

2004-09-19 Thread Jason Davidson
Sam Hobbs [EMAIL PROTECTED] wrote: Raditha Dissanayake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sam Hobbs wrote: I have posted over 12,000 messages in the CodeGuru.com Visual C++ forum, Do you have a life ? I hope the moderators protest posts such as this. i

Re: [PHP] mysql_connect does not connect

2004-09-19 Thread Sam Hobbs
Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Would you mind spilling the beans? I'm sure everyone is dying to know what the resolution of this thread is. I definitely mind. I don't believe in rewarding bad behavior. It is reasonable to contribute to the productive

Re: [PHP] mysql_connect does not connect

2004-09-19 Thread John Nichel
Sam Hobbs wrote: Raditha Dissanayake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sam Hobbs wrote: I have posted over 12,000 messages in the CodeGuru.com Visual C++ forum, Do you have a life ? I hope the moderators protest posts such as this. Moderators? You're in the land of

Re: [PHP] mysql_connect does not connect

2004-09-19 Thread Jason Davidson
uh huh.. was it your firewall :) :) it was wasnt it.. im so bad, im so bad it hurts, but i solved your problem, so come on, a cookie or something..pat on the head, or how about, thanks for helping. Jason Sam Hobbs [EMAIL PROTECTED] wrote: Jason Wong [EMAIL PROTECTED] wrote in message

Re: [PHP] mysql_connect does not connect

2004-09-18 Thread Sam Hobbs
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Sam Hobbs: And the relevant portion of that says external access, which is not applicable here. I do not see anything else on that page that is relevant. what is relevant? only the last one? :sigh: I don't

Re: [PHP] mysql_connect does not connect

2004-09-18 Thread Sam Hobbs
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Um.. you do realize you have more problems than php not being able to connect to the database. This is the type of unproductive comment that causes problems. The only reason you are saying this is because you are desperate

Re: [PHP] mysql_connect does not connect

2004-09-18 Thread Sam Hobbs
Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Being obstinate and contrarian does nothing to help resolve your problem. This is more unnecessary and unproductive comments. Since you did not have something relevant and productive to say the best thing to do is say

Re: [PHP] mysql_connect does not connect

2004-09-18 Thread Sam Hobbs
Steve Brown [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sam, if you wouldn't mind answering a question: are you still unable to connect to your mysql server? I am able to connect now. I'm sorry that you feel its a time-consuming process. I'm sorry that you are confused about

Re: [PHP] mysql_connect does not connect

2004-09-18 Thread raditha dissanayake
Sam Hobbs wrote: I have posted over 12,000 messages in the CodeGuru.com Visual C++ forum, Do you have a life ? -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and

Re: [PHP] mysql_connect does not connect

2004-09-18 Thread Sam Hobbs
Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You should check as XP SP2 firewall is turned on by default. http://support.microsoft.com/default.aspx?kbid=842242 Saying You should check assumes I did not check. I did check. I said as far as I know it is off. I am

Re: [PHP] mysql_connect does not connect

2004-09-18 Thread Jason Wong
On Saturday 18 September 2004 21:04, Sam Hobbs wrote: Steve Brown [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sam, if you wouldn't mind answering a question: are you still unable to connect to your mysql server? I am able to connect now. Would you mind spilling the beans?

Re: [PHP] mysql_connect does not connect

2004-09-18 Thread Sam Hobbs
That is the type of comment that causes problems. Reasonable and knowledgable people know it is not true and saying it just causes problems. Of course, many people would advise to just ignore comments such as that and I will in the future. I just want to make it clear for the benefit of others

Re: [PHP] mysql_connect does not connect

2004-09-18 Thread Daniel Schierbeck
Sam Hobbs wrote: Steve Brown [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sam, if you wouldn't mind answering a question: are you still unable to connect to your mysql server? I am able to connect now. I'm sorry that you feel its a time-consuming process. I'm sorry that you are

Re[2]: [PHP] mysql_connect does not connect

2004-09-18 Thread Tom Rogers
Hi All, I don't normally bother with these kind of meaningless threads as they waste valuable electrons but I did find this interesting http://www.urban75.com/Mag/troll.html PS This is not a dig at you Jason, it's just your post is the only one I didn't delete :) -- regards, Tom -- PHP

Re: Re[2]: [PHP] mysql_connect does not connect

2004-09-18 Thread Jason Davidson
I may be unnaturally ugly (to the extent my mother cried when she held me), and so i have a little extra hair here and there.. and my hands are like hams.. but im no troll :P :P Jason Tom Rogers [EMAIL PROTECTED] wrote: Hi All, I don't normally bother with these kind of meaningless

Re: [PHP] mysql_connect does not connect

2004-09-18 Thread Jason Davidson
oh booh, i replied to that, explicitly detailing you can simply allow an open port for mysql rather than drop the whole firewall. Yes this type of comment cuases problems, or in your case, fixes your problem... at least your mysql connection one. so are you saying im unreasonable, and

RE: [PHP] mysql_connect does not connect

2004-09-18 Thread Ed Lazor
, September 18, 2004 10:35 AM To: Sam Hobbs; [EMAIL PROTECTED] Subject: Re: [PHP] mysql_connect does not connect oh booh, i replied to that, explicitly detailing you can simply allow an open port for mysql rather than drop the whole firewall. Yes this type of comment cuases problems, or in your

  1   2   3   >