Hi,
Thank you all for your response. But turns out that the problem I am facing
is caused by something else and unrelated to MPMs being threaded. The test
case details gave me a clue.
The test was trying to load mod_php between graceful restarts, i.e start
apache without mod_php, then modify the
Rashmi Badan schreef:
Hi,
Thank you all for your response. But turns out that the problem I am facing
is caused by something else and unrelated to MPMs being threaded. The test
case details gave me a clue.
The test was trying to load mod_php between graceful restarts, i.e start
apache
Hello list.
I want know to you opinions about using $GLOBALS directly.
like
$GLOBALS['myString'] = 'test';
$GLOBALS['myArray']['this'] = 'this';
$GLOBALS['myArray']['that'] = 'that';
$GLOBALS['myClassObj] = new SomeClass;
Regards
Sancar
--
PHP General Mailing List (http://www.php.net/)
To
Rob,
Thank you for helping me through this.
'--enable-gd-native-ttf'
'--with-ttf'
This was the key information. I thought that having the GD modules
installed meant I had TTF support. But after I saw that, I realized that
TTF support was a separate module within the GD library.
On my
On Wed, 2007-12-19 at 12:13 +0200, Sancar Saran wrote:
Hello list.
I want know to you opinions about using $GLOBALS directly.
like
$GLOBALS['myString'] = 'test';
$GLOBALS['myArray']['this'] = 'this';
$GLOBALS['myArray']['that'] = 'that';
$GLOBALS['myClassObj] = new SomeClass;
It can
Sancar Saran schreef:
Hello list.
I want know to you opinions about using $GLOBALS directly.
like
$GLOBALS['myString'] = 'test';
$GLOBALS['myArray']['this'] = 'this';
$GLOBALS['myArray']['that'] = 'that';
$GLOBALS['myClassObj] = new SomeClass;
there is no real difference between
Hi,
I know this isn't purely php question but if you know please reply.
I have a server with a PHP script on it. I need to write an app(VB.NET) that
will connect to a server and request a script to process some info, and the
php script will return XML data, in which I need to process that
On Dec 19, 2007, at 1:51 AM, Robert Cummings wrote:
On Tue, 2007-12-18 at 16:26 -0500, Daniel Brown wrote:
On Dec 18, 2007 4:24 PM, Travis L. Font [EMAIL PROTECTED]
wrote:
Here's random! I'm going to close my eyes think of some drinking
water
and running AT the same time and just start
Zoran Bogdanov schreef:
Hi,
I know this isn't purely php question but if you know please reply.
I have a server with a PHP script on it. I need to write an app(VB.NET) that
will connect to a server and request a script to process some info, and the
php script will return XML data, in
Hello Jochem,
Thanks for response, I'm using this aproach maybe more than one year. I did
not get any problems.
there is no real difference between 'global $foo' and $GLOBALS['foo'],
and the second is probably more maintainance friendly (as Rob pionted out)
Yes you are right writing global
2007. 12. 19, szerda keltezéssel 08.50-kor Jason Pruim ezt írta:
On Dec 19, 2007, at 1:51 AM, Robert Cummings wrote:
On Tue, 2007-12-18 at 16:26 -0500, Daniel Brown wrote:
On Dec 18, 2007 4:24 PM, Travis L. Font [EMAIL PROTECTED]
wrote:
Here's random! I'm going to close my eyes think
js schreef:
That wouldn't work well when you have to update multiple tables in a
transaction.
I think it's more maintainable to use GLOBALS than passing around dbh
to classes/functions.
getDB() is a function that returns a database connection wrapper object not
a handle to a connection (that
2007. 12. 19, szerda keltezéssel 14.30-kor Zoran Bogdanov ezt írta:
Hi,
I know this isn't purely php question but if you know please reply.
I have a server with a PHP script on it. I need to write an app(VB.NET) that
will connect to a server and request a script to process some info, and
That wouldn't work well when you have to update multiple tables in a
transaction.
I think it's more maintainable to use GLOBALS than passing around dbh
to classes/functions.
On Dec 19, 2007 11:07 PM, Jochem Maas [EMAIL PROTECTED] wrote:
please reply to the list ...
js schreef:
I always store
2007. 12. 19, szerda keltezéssel 09.24-kor Jason Pruim ezt írta:
On Dec 19, 2007, at 9:19 AM, Zoltán Németh wrote:
2007. 12. 19, szerda keltezéssel 08.50-kor Jason Pruim ezt írta:
On Dec 19, 2007, at 1:51 AM, Robert Cummings wrote:
On Tue, 2007-12-18 at 16:26 -0500, Daniel Brown wrote:
please reply to the list ...
js schreef:
I always store database handler in $GLOBALS.
I think that's the best place to save request-level-global.
I wonder where other people save that kind of data.
how about a static variable inside a function or a static member of a class.
e.g.
function
js wrote:
That wouldn't work well when you have to update multiple tables in a
transaction.
I think it's more maintainable to use GLOBALS than passing around dbh
to classes/functions.
But you don't need to pass the dbh around to classes or functions, they
can just call getDB when they need it
On Dec 19, 2007, at 9:19 AM, Zoltán Németh wrote:
2007. 12. 19, szerda keltezéssel 08.50-kor Jason Pruim ezt írta:
On Dec 19, 2007, at 1:51 AM, Robert Cummings wrote:
On Tue, 2007-12-18 at 16:26 -0500, Daniel Brown wrote:
On Dec 18, 2007 4:24 PM, Travis L. Font [EMAIL PROTECTED]
wrote:
On Dec 18, 2007 10:01 PM, Richard Lynch [EMAIL PROTECTED] wrote:
On Tue, December 18, 2007 9:17 am, Richard Heyes wrote:
Emails that bounce get sent back to the address in the Return-Path:
header. Correct?
Depends on who is following which standards from which era...
There was an
Hi Jochem,
Sorry, I missed static.
So, getDB() would works like singleton, right?
I agree that's better method to manage dbh.
On Dec 19, 2007 11:27 PM, Jochem Maas [EMAIL PROTECTED] wrote:
js schreef:
That wouldn't work well when you have to update multiple tables in a
transaction.
I
I always store database handler in $GLOBALS.
I think that's the best place to save request-level-global.
I wonder where other people save that kind of data.
how about a static variable inside a function or a static member of a class.
e.g.
function getDB($args) {
static $conn =
Sancar Saran wrote:
And this is why I'm asking here, WHY I should avoid globals like plague ?
Every one says bad. Alright, but no one says WHY ?
Well for one thing it makes things harder to trace. You look at some
code and you're just using some magic global variable. You can't tell
what kind
On 19/12/2007, js [EMAIL PROTECTED] wrote:
Hi Jochem,
Sorry, I missed static.
So, getDB() would works like singleton, right?
I agree that's better method to manage dbh.
The technique is called memoization (http://en.wikipedia.org/wiki/Memoization).
-robin
--
PHP General Mailing List
figured id top-post on this one, since the original message was so long..
i recommend debugging with a tool like wireshark. that way you can
see whats in the packets going over the wire and hopefully it will lead
to a solution.
-nathan
On Dec 19, 2007 12:54 AM, vixle [EMAIL PROTECTED] wrote:
I think that any MTA or client that doesn't work with the
Reply-To header isn't worth beans.
very very true
Well the Reply-To: header isn't for bounces.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
**
2007. 12. 19, szerda keltezéssel 09.56-kor Daniel Brown ezt írta:
I think that any MTA or client that doesn't work with the
Reply-To header isn't worth beans.
very very true
greets
Zoltán Németh
--
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]
If at first you
Richard Heyes schreef:
I always store database handler in $GLOBALS.
I think that's the best place to save request-level-global.
I wonder where other people save that kind of data.
how about a static variable inside a function or a static member of a
class.
e.g.
function getDB($args) {
Daniel Brown schreef:
On Dec 18, 2007 10:01 PM, Richard Lynch [EMAIL PROTECTED] wrote:
On Tue, December 18, 2007 9:17 am, Richard Heyes wrote:
Emails that bounce get sent back to the address in the Return-Path:
header. Correct?
Depends on who is following which standards from which era...
On Wed, December 19, 2007 4:13 am, Sancar Saran wrote:
I want know to you opinions about using $GLOBALS directly.
like
$GLOBALS['myString'] = 'test';
$GLOBALS['myArray']['this'] = 'this';
$GLOBALS['myArray']['that'] = 'that';
$GLOBALS['myClassObj] = new SomeClass;
Don't.
You are using
On Dec 19, 2007 10:51 AM, Zoltán Németh [EMAIL PROTECTED] wrote:
2007. 12. 19, szerda keltezéssel 15.31-kor Richard Heyes ezt írta:
I think that any MTA or client that doesn't work with the
Reply-To header isn't worth beans.
very very true
Well the Reply-To: header isn't for
On Wed, December 19, 2007 8:14 am, js wrote:
That wouldn't work well when you have to update multiple tables in a
transaction.
I think it's more maintainable to use GLOBALS than passing around dbh
to classes/functions.
I also just use a 'global' for my db connection, for small to medium
web
js schreef:
Hi Jochem,
Sorry, I missed static.
So, getDB() would works like singleton, right?
yes - and it was just pseudo code off the top of my head, also there
are 2 slightly different ways to attack this - one is to return an
object that contains all the DB functionality (and stores the
2007. 12. 19, szerda keltezéssel 15.31-kor Richard Heyes ezt írta:
I think that any MTA or client that doesn't work with the
Reply-To header isn't worth beans.
very very true
Well the Reply-To: header isn't for bounces.
yes, for that Return-Path: should be used
greets
Zoltán Németh
Hi Dave,
Thanks for the compliment! :)
About TTF support in shared hosting... every decent hosting option should
support it. Though it is kind of an optional feature, it is as common as GD
itself (at least 9 out of 10 CAPTCHA scripts will rely on it). So if TTF
support is not installed, the
Richard Lynch wrote:
On Wed, December 19, 2007 4:13 am, Sancar Saran wrote:
I want know to you opinions about using $GLOBALS directly.
like
$GLOBALS['myString'] = 'test';
$GLOBALS['myArray']['this'] = 'this';
$GLOBALS['myArray']['that'] = 'that';
$GLOBALS['myClassObj] = new SomeClass;
On Dec 18, 2007 4:58 PM, Jim Webber [EMAIL PROTECTED] wrote:
Hello I have a PHP4 server and I'm trying to figure out how to do
implements on classes. Is there an analogous way to do this without
PHP5 installed?
It isn't inheritance in the same sense as PHP5, but you can use the
I can only say that MY user experience with web apps that TRIED to do
the kind of stuff you describe has been a HORRIBLE experience of
broken web apps and cross-browser incompatibility and bad UI design
that didn't let me do what I needed to do.
On Tue, December 18, 2007 11:25 pm, Andrés Robinet
On Wed, December 19, 2007 9:31 am, Richard Heyes wrote:
I think that any MTA or client that doesn't work with the
Reply-To header isn't worth beans.
very very true
Well the Reply-To: header isn't for bounces.
The OP was asking about Return-path, not Reply-to
Furthermore, while the
On Wed, December 19, 2007 8:18 am, Sancar Saran wrote:
Thanks for response, I'm using this aproach maybe more than one year.
I did
not get any problems.
there is no real difference between 'global $foo' and
$GLOBALS['foo'],
and the second is probably more maintainance friendly (as Rob
On Wed, December 19, 2007 10:14 am, Stut wrote:
Richard Lynch wrote:
On Wed, December 19, 2007 4:13 am, Sancar Saran wrote:
I want know to you opinions about using $GLOBALS directly.
like
$GLOBALS['myString'] = 'test';
$GLOBALS['myArray']['this'] = 'this';
$GLOBALS['myArray']['that'] =
On Tue, December 18, 2007 3:05 am, abderrazzak nejeoui wrote:
can you help me to export data to a ms excel file using php. i tried
to
export them to an html format and change the extension to .xls that's
work
but i have lost the formatting
excel and the navigator doesn't interpret my code
You're definitely going to be using javascript to handle this. The
functionality that you are trying to create is a Modal window (
http://en.wikipedia.org/wiki/Modal_window). I create this same type of
functionality using jQuery (http://jquery.com/) and Thickbox (
2007. 12. 19, szerda keltezéssel 10.25-kor Richard Lynch ezt írta:
On Wed, December 19, 2007 10:14 am, Stut wrote:
Richard Lynch wrote:
On Wed, December 19, 2007 4:13 am, Sancar Saran wrote:
I want know to you opinions about using $GLOBALS directly.
like
$GLOBALS['myString'] =
On Dec 19, 2007 11:18 AM, Richard Lynch [EMAIL PROTECTED] wrote:
On Wed, December 19, 2007 9:31 am, Richard Heyes wrote:
I think that any MTA or client that doesn't work with the
Reply-To header isn't worth beans.
very very true
Well the Reply-To: header isn't for bounces.
The OP
On Dec 19, 2007 11:53 AM, Daniel Brown [EMAIL PROTECTED] wrote:
On Dec 19, 2007 11:18 AM, Richard Lynch [EMAIL PROTECTED] wrote:
On Wed, December 19, 2007 9:31 am, Richard Heyes wrote:
I think that any MTA or client that doesn't work with the
Reply-To header isn't worth beans.
On Dec 19, 2007 11:59 AM, Jim Lucas [EMAIL PROTECTED] wrote:
Daniel Brown wrote:
On Dec 19, 2007 11:18 AM, Richard Lynch [EMAIL PROTECTED] wrote:
On Wed, December 19, 2007 9:31 am, Richard Heyes wrote:
I think that any MTA or client that doesn't work with the
Reply-To header isn't
Daniel Brown wrote:
On Dec 19, 2007 11:18 AM, Richard Lynch [EMAIL PROTECTED] wrote:
On Wed, December 19, 2007 9:31 am, Richard Heyes wrote:
I think that any MTA or client that doesn't work with the
Reply-To header isn't worth beans.
very very true
Well the Reply-To: header isn't for
Zoltán Németh wrote:
2007. 12. 19, szerda keltezéssel 10.25-kor Richard Lynch ezt írta:
On Wed, December 19, 2007 10:14 am, Stut wrote:
Richard Lynch wrote:
On Wed, December 19, 2007 4:13 am, Sancar Saran wrote:
I want know to you opinions about using $GLOBALS directly.
like
On Dec 19, 2007 12:26 PM, Stut [EMAIL PROTECTED] wrote:
Daniel Brown wrote:
On Dec 19, 2007 11:18 AM, Richard Lynch [EMAIL PROTECTED] wrote:
On Wed, December 19, 2007 9:31 am, Richard Heyes wrote:
I think that any MTA or client that doesn't work with the
Reply-To header isn't worth
On Dec 19, 2007 11:17 AM, Andrew Ballard [EMAIL PROTECTED] wrote:
On Dec 18, 2007 4:58 PM, Jim Webber [EMAIL PROTECTED] wrote:
Hello I have a PHP4 server and I'm trying to figure out how to do
implements on classes. Is there an analogous way to do this without
PHP5 installed?
It isn't
Daniel Brown wrote:
On Dec 19, 2007 11:18 AM, Richard Lynch [EMAIL PROTECTED] wrote:
On Wed, December 19, 2007 9:31 am, Richard Heyes wrote:
I think that any MTA or client that doesn't work with the
Reply-To header isn't worth beans.
very very true
Well the Reply-To: header isn't for
I've been searching all over MSDN for this info, but can't find
anything. I have a script under a directory protected by HTTP Digest
authentication. This is an Apache server on Linux.
When I try to access the script through ajax using the XMLHttpRequest
object, everything is fine in all
Maybe I'm too old a dog to teach a new trick to.
I've got the redirect example discussed a couple days ago working
nicely. Back, Refresh, 'wrong username' - all work nicely.
But I like the idea of reducing the load on the server, maybe
alleviating some redirect pinball. So been trying to use
Robert Erbaron wrote:
Maybe I'm too old a dog to teach a new trick to.
I've got the redirect example discussed a couple days ago working
nicely. Back, Refresh, 'wrong username' - all work nicely.
But I like the idea of reducing the load on the server, maybe
alleviating some redirect
1. p1.php would post to itself. Do data validation. After data validation
upon error, include p1.php again with included error messages
upon success, redirect to p3.php with congrats.
Yeah, I could do this, but it uses a redirect, and like you said, it's gnarly.
2. p1.php
I've been looking through the docs but haven't found an internal function
that does what I'm looking for. Perhaps I missed it? Or perhaps someone
can point me in the right direction? I'm looking for a routine that will
convert tags to lower case. For example, if I have
HTML
HEAD
I've been looking through the docs but haven't found an internal function
that does what I'm looking for. Perhaps I missed it? Or perhaps someone
can point me in the right direction? I'm looking for a routine that will
convert tags to lower case. For example, if I have
HTML
HEAD
Robert Erbaron [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
1. p1.php would post to itself. Do data validation. After data
validation
upon error, include p1.php again with included error messages
upon success, redirect to p3.php with congrats.
Yeah, I could do
On Dec 19, 2007 3:55 PM, Robert Erbaron [EMAIL PROTECTED] wrote:
1. p1.php would post to itself. Do data validation. After data
validation
upon error, include p1.php again with included error messages
upon success, redirect to p3.php with congrats.
Yeah, I could do
If you're using PHP5, you can use the tidy functions -
http://us2.php.net/tidy. The default settings output html tags in
lower-case. For tidy config settings, see
http://tidy.sourceforge.net/docs/quickref.html
Brady
On Dec 19, 2007 1:10 PM, Christoph Boget [EMAIL PROTECTED] wrote:
I've been
On Dec 19, 2007 4:10 PM, Christoph Boget [EMAIL PROTECTED] wrote:
I've been looking through the docs but haven't found an internal function
that does what I'm looking for. Perhaps I missed it? Or perhaps someone
can point me in the right direction? I'm looking for a routine that will
Daniel Brown wrote:
On Dec 19, 2007 4:10 PM, Christoph Boget [EMAIL PROTECTED] wrote:
I've been looking through the docs but haven't found an internal function
that does what I'm looking for. Perhaps I missed it? Or perhaps someone
can point me in the right direction? I'm looking for a
On Dec 19, 2007 6:08 PM, Jim Lucas [EMAIL PROTECTED] wrote:
Daniel Brown wrote:
On Dec 19, 2007 4:10 PM, Christoph Boget [EMAIL PROTECTED] wrote:
I've been looking through the docs but haven't found an internal function
that does what I'm looking for. Perhaps I missed it? Or perhaps
Andrew Ballard wrote:
On Dec 18, 2007 4:58 PM, Jim Webber [EMAIL PROTECTED] wrote:
Hello I have a PHP4 server and I'm trying to figure out how to do
implements on classes. Is there an analogous way to do this without
PHP5 installed?
It isn't inheritance in the same sense as PHP5, but you can
hi guys,
well having tried for countless hours to build php on leopard I pretty much
gave up.
apparently it's pretty much impossible unless your name is Marc Liyanage
(entropy.ch) ...
the problem lies with the fact that you need 64bit libs and the some (most
notably iconv)
of the libs
On 11-Dec-07, at 2:13 PM, Per Jessen wrote:
René Fournier wrote:
However, the number of socket clients connecting in the past 3-4
months has steadily increased, and this seems to have exposed (if not
created) a strange performance issue with PHP 5.2.4, MySQL 5.0.45
and/or Mac OS X Server
On Wed, 2007-12-19 at 14:23 -0700, Dan wrote:
Robert Erbaron [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
1. p1.php would post to itself. Do data validation. After data
validation
upon error, include p1.php again with included error messages
upon
What you have will work, you just need to escape out the double quotes in
the html.
On 12/19/07 7:38 PM, php mail [EMAIL PROTECTED] wrote:
Hi All,
Is it possible to assign variable to a block of html code ?
Something like this :
$myblokvar =
table width=487 border=0
On Dec 19, 2007 10:24 AM, Shu-Wai Chow [EMAIL PROTECTED] wrote:
I've been searching all over MSDN for this info, but can't find
anything. I have a script under a directory protected by HTTP Digest
authentication. This is an Apache server on Linux.
When I try to access the script through
Hi All,
Is there any tool to profiling PHP app ?
Regards,
Feris
When it comes to liability, who is liable, the merchant running the system,
the develper that created the system, or both?
If the develper is included, would that be mitigated in that he created the
system to the merchant's specifications?
Also, in terms of the developer, would this be
On Thu, 2007-12-20 at 11:21 +0700, php mail wrote:
Is there any tool to profiling PHP app ?
Yes, there are a few. The best that I have found anyway, is Xdebug 2
(http://pecl.php.net/xdebug). It can also integrate nicely with PHPUnit
as well to do code coverage as well as make your life
php mail wrote:
Hi All,
Is there any tool to profiling PHP app ?
http://www.xdebug.org/docs/profiler
--
Postgresql php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You should try the HEREDOC structure.
See link: http://php.net/heredoc
It should look to something like:
$myblokvar = EOF
table blabla
tr
td
Welcome $name to this website!
/td
/tr
/table
EOF;
No need of quotes or php
74 matches
Mail list logo