php-general Digest 15 Jul 2006 14:49:19 -0000 Issue 4241

Topics (messages 239502 through 239507):

Re: Zend Studio, phpMyAdmin, and mysql.sock
        239502 by: Dave M G
        239503 by: Dave M G
        239504 by: Kevin Waterson
        239507 by: Jochem Maas

Re: PAGE TURNED BECOME SOURCE CODE VIEW..
        239505 by: BBC

Re: Image submit with mouse over
        239506 by: Stut

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
PHP List,

My apologies to any and all that I may have offended for bringing up Zend specific issues here.

I understand that PHP is developed by a huge community of developers whose efforts I appreciate very much. By stating that Zend is the company where PHP originates, I was not trying to state that they have any obligation to handle Zend Studio issues here on this list, or that this list is obligated to deal with Zend issue, or that their development contributions should eclipse the greater community.

I was only surprised by the initial response which seemed to me to be a very hard line stance against any Zend related questions.

Please understand that I was *hoping* for advice here, as Zend and PHP are surely highly correlated. But I apologize if I came across as if I *expected* answers.

The original issue that caused me to post here has now definitely turned into a PHP issue, which I will encapsulate in a different posting from this apology. So, if issues of Zend can be put aside, I'd like to seek advice on how to get my local PHP 5 installation working again.

Thanks to all members of this list for continuing to make PHP a great scripting language, and for making this list a great source of support.

--
Dave M G

--- End Message ---
--- Begin Message ---
PHP List,

As was suggested on this list by Paul and Richard, I've resolved the Zend studio/MySQL socket issue by creating a symbolic link from /tmp/mysql.socl to /var/run/mysqld/mysqld.sock.
( ln -s /var/run/mysqld/mysql.sock /tmp/mysql.sock )

But, clearly in my earlier attempts to find a solution, I've munged up my php.ini file or something, because now not only does phpMyAdmin not connect, no PHP script that I run locally will work.

To resolve this, I tried to retrace my steps and put everything back the way it was. I also reinstalled MySQL, PHP, and phpMyAdmin from the Ubuntu repositories using apt-get.

Despite these efforts, whatever it is that I've done to mess up my system remains in place.

When I start a PHP script that calls upon MySQL, I get the following error:
Warning: mysql_pconnect() [function.mysql-pconnect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /web_sites/web/db_fns.php on line 6.

So far as I can remember, the only places I made edits were in /etc/php5/apache2/php.ini, and /etc/mysql/my.cnf.

In /etc/php5/apache2/php.ini, here is what the relevant section looks like now:

- - - - - - - - -
; Default port number for mysql_connect(). If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
; at MYSQL_PORT.
mysql.default_port = 3306

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
mysql.default_socket =
- - - - - - - - -

My understanding of the above is that if the socket variable is left empty, it should go with the MySQL default. I have tried specifying "mysql.default_socket = /var/run/mysqld/mysql.sock" and "mysql.default_socket = /tmp/mysql.sock", but that hasn't helped.

As for /etc/mysql/my.cnf, it says:

- - - - - - - - -
[mysqld]
pid-file    = /var/run/mysqld/mysqld.pid
socket     = /var/run/mysqld/mysql.sock
- - - - - - - - -

I am unsure where to look to diagnose this problem further.

Any advice would be much appreciated. Thank you.

--
Dave M G

--- End Message ---
--- Begin Message ---
This one time, at band camp, Dave M G <[EMAIL PROTECTED]> wrote:
 
> Please understand that I was *hoping* for advice here, as Zend and PHP 
> are surely highly correlated. But I apologize if I came across as if I 
> *expected* answers.

You raise an interesting point. Whilst PHP uses the Zend Engine it is the
only Zend product in use as far as I know. Zend have an array of other
commercial products that are built with PHP, but are no different than
any other commercial venture.

Being that these products are commercial in nature, should not they
be supporting thier own products, rather than relying on the good
will of the open source/PHP folks for tech support? If we should support
Zend products, why not other commercial applications also?
Is Zend hoping for volunteer contributions for commercial enterprises?
Should we support Zend business partners also?


Kind regards
Kevin 

-- 
"Democracy is two wolves and a lamb voting on what to have for lunch. 
Liberty is a well-armed lamb contesting the vote."

--- End Message ---
--- Begin Message ---
Kevin Waterson wrote:
> This one time, at band camp, Dave M G <[EMAIL PROTECTED]> wrote:
>  
>> Please understand that I was *hoping* for advice here, as Zend and PHP 
>> are surely highly correlated. But I apologize if I came across as if I 
>> *expected* answers.
> 
> You raise an interesting point. Whilst PHP uses the Zend Engine it is the
> only Zend product in use as far as I know. Zend have an array of other
> commercial products that are built with PHP, but are no different than
> any other commercial venture.
> 
> Being that these products are commercial in nature, should not they
> be supporting thier own products, rather than relying on the good
> will of the open source/PHP folks for tech support? If we should support
> Zend products, why not other commercial applications also?
> Is Zend hoping for volunteer contributions for commercial enterprises?
> Should we support Zend business partners also?

<just_a_bit_of_silly_humour>

yeah ;-) let's take up support of all IBM, Oracle and/or Sun related
problems right away. (actually I remember a thread where John Nichel quipped
we should be supporting anything as long as it was somehow related to IBM -
which is basically anything in the IT world ;-)

and there are probably alot of people on this lsit developing on a Dell
machine - given the problems Dell having been having with their customer
support we should immediately offer all our time to helping Dell customers
with support problems and lets those callcenter workers in India take a
load off. my number is +31 800 ...

anyone having relationship/personal problems should prefix the subject line
of their posts 'php-head-shrink' to ensure a priority response.

I don't think we should draw a line at hotmail support.

</just_a_bit_of_silly_humour>
> 
> 
> Kind regards
> Kevin 
> 

--- End Message ---
--- Begin Message ---
> On Sun, July 9, 2006 12:00 pm, BBC wrote:
> > Hi list... Thank for answering my questions before. I love to be a
> > member of
> > this list. Guys... I got another problem with GD library v2. I don't
> > know
> > why every time the script run the syntax which uses GD, the page
> > turned
> > becomes source code view. So when we need that page in normal view, we
> > had
> > to push the 'back button' twice.
> 
> Show us the URL to your page, and its source...
> 
> We cannot guess from this description what you've managed to do.
Sorry the code I was talking about is in administrator page group, so you need 
to insert username and password to get into it.
I don't think I can give you the username and password through this list. And 
thank for the next input for error_log()..

--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Skip Evans wrote:
> Brand new to the list, so here's my question. I am  implementing a bunch
> of Dreamweaver templates a designer has built into a PHP app, and one
> thing she did is create a submit button (image) that uses mouse over JS:
> 
> <a href="user.php?req=login" target="_top"
> onMouseOver="MM_swapImage('signin','','/theme/images/admin/button_signin2.gif',1)"
> onMouseOut="MM_swapImgRestore()"><img
> src="/theme/images/admin/button_signin.gif" alt="Sign In" name="signin"
> width="86" height="20" border="0"></a>
> 
> But notice this is an href, and it also needs to submit $_POST data
> through a couple of form fields that appear above. So what I tried to do
> in order to be able to retrieve the POST data on the receiving end was
> convert it to the following:
> 
> <input type="image" src="/theme/images/admin/button_signin.gif"
> onfocus="MM_swapImage('signin','','/theme/images/admin/button_signin2.gif',1)"
> 
> onblur="MM_swapImgRestore()">
> 
> ...However, the onfocus and onblur are not swapping out the images, as I
> had hoped. (Against all odds, maybe I should add.)

Ok, so you've already had the "this is not a JS list" reply, so I won't
bother with that, but... Have you ever considered the possibility that
onmouseover and onmouseout work in an input element? Have you tried
looking up the purpose of onfocus and onblur which would have told you
it's not what you need?

This has been your RTFM reply. We hope you enjoyed your PHP-General
experience.

- -Stut
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEuL5n2WdB7L+YMm4RAr0oAJ9idoS/qkUF0oKdFasajKu20kNkTACcC1o6
47vilFoD+XJ99AjT6zA96Bo=
=cWJK
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to