php-general Digest 29 Dec 2009 21:09:47 -0000 Issue 6512

2009-12-29 Thread php-general-digest-help
php-general Digest 29 Dec 2009 21:09:47 - Issue 6512 Topics (messages 300717 through 300730): Multiple Inheritance Needed in OOP? 300717 by: Daniel Kolbo 300722 by: Larry Garfield MySQL Increment/Decrement 300718 by: Ben Miller 300719 by: Robert Cummings

Re: [PHP] MySQL Increment/Decrement

2009-12-29 Thread muzy
Hello Ben, I had the same question yesterday (but with SQLite) and there are at least 2 solutions. The first was already mentioned: UPDATE table SET value = value + 1 WHERE foo = bar; The second solution which also works is: UPDATE table SET value = (SELECT value FROM table WHERE foo =

[PHP] Solution: [PHP] Fatal error: Call to undefined function: mysqli_connect() in

2009-12-29 Thread chris_brech
After trying everything everyone said in here, I finally had a clear enough head to read through my logs and both my Apache httpd.conf and my PHP6 php.ini files. I realized that in my Apache error log, it was listing the fact that PHP could not load the modules for mysqli and xmlrpc (or

[PHP] [php] Question about jsmin-php code

2009-12-29 Thread hack988 hack988
I'm see some code from jsmin-php like follow: ?php error_reporting(E_STRICT); fwrite(STDERR, memory_get_peak_usage(true).\n); require './jsmin.php'; echo JSMin::minify(file_get_contents('ext-all-debug.js')); fwrite(STDERR, memory_get_peak_usage(true).\n); ? I have some question about code

Re: [PHP] [php] Question about jsmin-php code

2009-12-29 Thread Daniel Egeberg
On Tue, Dec 29, 2009 at 12:07, hack988 hack988 hack...@dev.htwap.com wrote: I have some question about code 1.what is E_STRICT error level mean?I'm found an explain at http://www.php.net/manual/en/errorfunc.constants.php but i don't understand which situation need this level? E_STRICT is an

Re: [PHP] MySQL Increment/Decrement

2009-12-29 Thread Phpster
On Dec 29, 2009, at 3:10 AM, muzy p...@muzybot.de wrote: Hello Ben, I had the same question yesterday (but with SQLite) and there are at least 2 solutions. The first was already mentioned: UPDATE table SET value = value + 1 WHERE foo = bar; The second solution which also works is:

Re: [PHP] Re: Noob stuff - Zend/Opcode/Cache/Optimizer

2009-12-29 Thread Shahar Evron
Hi, In general, the Zend Engine is an integral part of PHP (the engine so to speak of PHP). It's open source, and is developed as part of PHP generally speaking by the same community (or maybe specific people in that community). Zend Server (incl. Zend Server CE) is a Zend (the company) product.

[PHP] output buffer

2009-12-29 Thread Marc Fromm
I am receiving the Cannot send session cookie - headers already sent message even though I am using ob_start() at the top of my script. The php.ini file has output_buffering set to 4096 4096. My server is running Red Hat Enterprise Linux 5.2 I am using PHP 5.1.6 Is there some other setting I

Re: [PHP] ip-to-country

2009-12-29 Thread George Langley
From my experience, I have had reported one incorrect country-level IP from Maxmind's paid service (returned US vrs Canada for a Canadian IP). But their free version is based on the commercial lists, just not updated as often, or automatically (you download and store locally on your

Re: [PHP] ip-to-country

2009-12-29 Thread Nitsan Bin-Nun
easy-peasy :) I have nothing to add to the discussion, my experience is only with Maxmind's free database, and it is definitely not accurate at Israel. On Tue, Dec 29, 2009 at 11:14 PM, George Langley george.lang...@shaw.cawrote: From my experience, I have had reported one incorrect

Re: [PHP] output buffer

2009-12-29 Thread Bastien Koert
On Tue, Dec 29, 2009 at 4:09 PM, Marc Fromm marc.fr...@wwu.edu wrote: I am receiving the Cannot send session cookie - headers already sent message even though I am using ob_start() at the top of my script. The php.ini file has output_buffering set to 4096 4096. My server is running Red Hat

Re: [PHP] sending email with php

2009-12-29 Thread George Langley
http://articles.sitepoint.com/article/code-html-email-newsletters is a straight-ahead overview of what you can/should/cant/shouldn't do in HTML e-mails. Or check out: http://www.devshed.com/c/a/PHP/Composing-Messages-in-HTML-for-MIME-Email-with-PHP/ for some heavy-duty mail

Re: [PHP] Unable to get output from exec ssh remote-server 'ping -c4 ip'

2009-12-29 Thread Adam Randall
If you are just checking to see if the IP is pingable, but don't care about the output you could just test against the exit code: $host = 'hostorip'; $sshhost = 'hostorip'; $alive = trim( shell_exec( 'ssh ' . $sshhost . ' ping -q -n -c 5 -W 2 ' . $host . ' \/dev/null 2\\1 \\ echo Alive' ) ) ==

RE: [PHP] output buffer

2009-12-29 Thread Marc Fromm
I figured it out but not sure why. On the dev server the script ran with no errors On the live server the script created the header already sent error. In the code I did not execute ob_start() at the top of the script. Once I executed ob_start at the top of the script on the live server it

Re: [PHP] Multiple Inheritance Needed in OOP?

2009-12-29 Thread Daniel Kolbo
Larry Garfield wrote: On Monday 28 December 2009 9:45:03 pm Daniel Kolbo wrote: Hello, Okay so PHP designers explicitly decided against multiple inheritances, but aren't there legitimate needs for multiple inheritance in OOP? For example, consider the following three classes (A,B,C) with

Re: [PHP] Multiple Inheritance Needed in OOP?

2009-12-29 Thread Daniel Egeberg
On Wed, Dec 30, 2009 at 01:24, Daniel Kolbo kolb0...@umn.edu wrote: This way multiple inheritance is available for those that legitimately need it [...] Could you by any chance provide an example where multiple inheritance would be required? To be honest, I've never really seen a use for it,

Re: [PHP] Multiple Inheritance Needed in OOP?

2009-12-29 Thread Daniel Kolbo
Daniel Egeberg wrote: On Wed, Dec 30, 2009 at 01:24, Daniel Kolbo kolb0...@umn.edu wrote: This way multiple inheritance is available for those that legitimately need it [...] Could you by any chance provide an example where multiple inheritance would be required? To be honest, I've never

Re: [PHP] output buffer

2009-12-29 Thread kranthi
most probable error in your case is the dev server has output buffering enabled while it is turned off on the live server. try phpinfo to verify -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unable to get output from exec ssh remote-server 'ping -c4 ip'

2009-12-29 Thread kranthi
better try using ssh2_* functions http://www.php.net/manual/en/function.ssh2-tunnel.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] not able to use mysql server

2009-12-29 Thread Sudhakar
hi i am using windows vista and installed wamp server, initially i installed wamp and accessed phpmyadmin and while setting a password for the root i did a mistake and could not access phpmyadmin and also renamed some php files so i uninstalled wamp server and re installed now the problem i am

Re: [PHP] not able to use mysql server

2009-12-29 Thread Jignesh Thummar
It is problem with mysql client, it's not able to connect with mysql server. Either mysql server is not running or windows firewall is blocking to the access of port 3306. Try to disable firewall. -Jignesh On Wed, Dec 30, 2009 at 11:41 AM, Sudhakar sudhakarar...@gmail.com wrote: hi i am