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
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 =
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
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
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
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:
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.
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
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
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
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
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
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' ) ) ==
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
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
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,
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
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
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
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
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
21 matches
Mail list logo