Re: [PHP] php with threaded MPM problem ?

2007-12-19 Thread Rashmi Badan
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

Re: [PHP] php with threaded MPM problem ?

2007-12-19 Thread Jochem Maas
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

[PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Sancar Saran
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

Re: [PHP] Writing text into images, and setting text size [SOLVED]

2007-12-19 Thread Dave M G
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

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Robert Cummings
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

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Jochem Maas
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

[PHP] PHP and VB.NET communication

2007-12-19 Thread Zoran Bogdanov
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

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-19 Thread Jason Pruim
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

Re: [PHP] PHP and VB.NET communication

2007-12-19 Thread Jochem Maas
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

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Sancar Saran
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

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-19 Thread Zoltán Németh
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

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Jochem Maas
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

Re: [PHP] PHP and VB.NET communication

2007-12-19 Thread Zoltán Németh
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

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread js
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

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-19 Thread Zoltán Németh
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:

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Jochem Maas
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

[PHP] Re: Opinion about the using $GLOBALS directly

2007-12-19 Thread Colin Guthrie
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

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-19 Thread Jason Pruim
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:

Re: [PHP] Just to confirm...

2007-12-19 Thread Daniel Brown
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

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread js
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

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Richard Heyes
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 =

[PHP] Re: Opinion about the using $GLOBALS directly

2007-12-19 Thread Colin Guthrie
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

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Robin Vickery
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

Re: [PHP] Re: php sockets

2007-12-19 Thread Nathan Nobbe
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:

Re: [PHP] Just to confirm...

2007-12-19 Thread Richard Heyes
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 **

Re: [PHP] Just to confirm...

2007-12-19 Thread Zoltán Németh
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

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Jochem Maas
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) {

Re: [PHP] Just to confirm...

2007-12-19 Thread Jochem Maas
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...

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Richard Lynch
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

Re: [PHP] Just to confirm...

2007-12-19 Thread Daniel Brown
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

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Richard Lynch
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

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Jochem Maas
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

Re: [PHP] Just to confirm...

2007-12-19 Thread Zoltán Németh
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

RE: [PHP] Writing text into images, and setting text size [SOLVED]

2007-12-19 Thread Andrés Robinet
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

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Stut
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;

Re: [PHP] About PHP Implements

2007-12-19 Thread Andrew Ballard
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

RE: [PHP] control browser with a href tag

2007-12-19 Thread Richard Lynch
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

Re: [PHP] Just to confirm...

2007-12-19 Thread Richard Lynch
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

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Richard Lynch
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

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Richard Lynch
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'] =

Re: [PHP] export data to a ms excel file using php

2007-12-19 Thread Richard Lynch
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

Re: [PHP] control browser with a href tag

2007-12-19 Thread Tom Friedhof
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 (

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Zoltán Németh
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'] =

Re: [PHP] Just to confirm...

2007-12-19 Thread Daniel Brown
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

Re: [PHP] Just to confirm...

2007-12-19 Thread Andrew Ballard
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.

Re: [PHP] Just to confirm...

2007-12-19 Thread Daniel Brown
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

Re: [PHP] Just to confirm...

2007-12-19 Thread Stut
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

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Stut
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

Re: [PHP] Just to confirm...

2007-12-19 Thread Daniel Brown
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

Re: [PHP] About PHP Implements

2007-12-19 Thread Nathan Nobbe
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

Re: [PHP] Just to confirm...

2007-12-19 Thread Jim Lucas
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

[PHP] a bit OT - Does XMLHTTP work with Digest Authentication?

2007-12-19 Thread Shu-Wai Chow
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

[PHP] Using require instead of redirect architecture

2007-12-19 Thread Robert Erbaron
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

Re: [PHP] Using require instead of redirect architecture

2007-12-19 Thread Jim Lucas
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

Re: [PHP] Using require instead of redirect architecture

2007-12-19 Thread Robert Erbaron
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

[PHP] Change case of HTML tags

2007-12-19 Thread Christoph Boget
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

[PHP] Change case of HTML tags

2007-12-19 Thread Christoph Boget
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

Re: [PHP] Using require instead of redirect architecture

2007-12-19 Thread Dan
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

Re: [PHP] Using require instead of redirect architecture

2007-12-19 Thread Nathan Nobbe
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

Re: [PHP] Change case of HTML tags

2007-12-19 Thread Brady Mitchell
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

Re: [PHP] Change case of HTML tags

2007-12-19 Thread Daniel Brown
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

Re: [PHP] Change case of HTML tags

2007-12-19 Thread Jim Lucas
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

Re: [PHP] Change case of HTML tags

2007-12-19 Thread Daniel Brown
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

Re: [PHP] About PHP Implements

2007-12-19 Thread Chris
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

[PHP] building PHP5.2.5 on Mac OS X Leopard (anyone know how to build a just an extension)

2007-12-19 Thread Jochem Maas
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

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-19 Thread René Fournier
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

Re: [PHP] Using require instead of redirect architecture

2007-12-19 Thread Robert Cummings
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

Re: [PHP] Assign variable to a block of html code

2007-12-19 Thread Stephen Johnson
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

Re: [PHP] a bit OT - Does XMLHTTP work with Digest Authentication?

2007-12-19 Thread Casey
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

[PHP] Profiling PHP App

2007-12-19 Thread php mail
Hi All, Is there any tool to profiling PHP app ? Regards, Feris

[PHP] Re: [PHP-DB] Credit Card Encryption

2007-12-19 Thread Robert Erbaron
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

Re: [PHP] Profiling PHP App

2007-12-19 Thread Paul Scott
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

Re: [PHP] Profiling PHP App

2007-12-19 Thread Chris
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

RE: [PHP] Assign variable to a block of html code

2007-12-19 Thread Xavier de Lapeyre
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