Re: [PHP] Recursion... Sort of...

2008-05-08 Thread Nathan Nobbe
On Thu, May 8, 2008 at 6:23 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > Nathan Nobbe wrote: > >> On Thu, May 8, 2008 at 3:48 PM, Matt Neimeyer <[EMAIL PROTECTED]> wrote: >> >> Is there a way to tell if a function has been called that has resulted >>> in a call to the same function? >>> >>> We have

Re: [PHP] AI file and mapping with PHP

2008-05-08 Thread paragasu
On Wed, May 7, 2008 at 10:05 PM, Thijs Lensselink <[EMAIL PROTECTED]> wrote: > Quoting Angelo Zanetti <[EMAIL PROTECTED]>: > > Hi Guys, >> >> We have a project where by we have a map in ai format (vector format). >> What >> we want to do is to programmatically come up with a solution that say on

Re: [PHP] Recursion... Sort of...

2008-05-08 Thread David Otton
2008/5/8 Matt Neimeyer <[EMAIL PROTECTED]>: > Is there a way to tell if a function has been called that has resulted > in a call to the same function? debug_backtrace() Can't comment on performance, though. Its an inelegant solution. > We have an in-house CRM app that has a function that draws

Re: [PHP] Recursion... Sort of...

2008-05-08 Thread Jim Lucas
Nathan Nobbe wrote: On Thu, May 8, 2008 at 3:48 PM, Matt Neimeyer <[EMAIL PROTECTED]> wrote: Is there a way to tell if a function has been called that has resulted in a call to the same function? We have an in-house CRM app that has a function that draws a tabbed panel on a screen... BUT if th

Re: [PHP] mysql query and maximum characters in sql statement

2008-05-08 Thread Chris
Sanjeev N wrote: > Hi Jim Lucas, > > You are correct... i want to run in the same way. > > but as my 2 tables, column name are different i cant run the LOAD DATA > infile. If you're inserting the same data, then use LOAD DATA INFILE to load it into a temporary table, then use INSERT SELECT's to

Re: [PHP] Re: Where to start!

2008-05-08 Thread Mark Weaver
Richard Heyes wrote: I do not agree that creating a database which is normalised to3NF is a waste of time. It isn't always, but it is sometimes. When time is a (significant) factor, getting something up and running (which has acceptable performance) may be more impotant than creating a techni

Re: [PHP] Setting up a program that can be accessed by all domain on a server

2008-05-08 Thread Nathan Nobbe
On Thu, May 8, 2008 at 3:37 PM, Richard Kurth <[EMAIL PROTECTED]> wrote: > Dan Joseph wrote: > >> On Thu, May 8, 2008 at 11:54 AM, Richard Kurth < >> [EMAIL PROTECTED]> >> wrote: >> >> >> >>> Dan Joseph wrote: >>> >>> >>> On Thu, May 8, 2008 at 11:47 AM, Richard Kurth < [EMAIL PROTECTED]

Re: [PHP] Recursion... Sort of...

2008-05-08 Thread Nathan Nobbe
On Thu, May 8, 2008 at 3:48 PM, Matt Neimeyer <[EMAIL PROTECTED]> wrote: > Is there a way to tell if a function has been called that has resulted > in a call to the same function? > > We have an in-house CRM app that has a function that draws a tabbed > panel on a screen... BUT if there are sub-su

[PHP] Recursion... Sort of...

2008-05-08 Thread Matt Neimeyer
Is there a way to tell if a function has been called that has resulted in a call to the same function? We have an in-house CRM app that has a function that draws a tabbed panel on a screen... BUT if there are sub-sub-tabbed panels we want to invert the tab colors and panel colors... So... DrawSu

Re: [PHP] Setting up a program that can be accessed by all domain on a server

2008-05-08 Thread Richard Kurth
Dan Joseph wrote: On Thu, May 8, 2008 at 11:54 AM, Richard Kurth <[EMAIL PROTECTED]> wrote: Dan Joseph wrote: On Thu, May 8, 2008 at 11:47 AM, Richard Kurth < [EMAIL PROTECTED]> wrote: I have a program that I am writing that I what to install on my server that can be access

[PHP] Re: Newbie - is there a function similar to the sql 'like' comparisonoperator?

2008-05-08 Thread Shawn McKenzie
revDAVE wrote: Newbie - is there a function similar to the sql 'like' comparison operator? I would like to be able to compare 2 strings: If $this ---*like or similar to*--- $that That type of thing... I know of this page: http://us3.php.net/manual/sl/language.operators.comparison.php But

Re: [PHP] Setting up a program that can be accessed by all domain on a server

2008-05-08 Thread Dan Joseph
On Thu, May 8, 2008 at 11:54 AM, Richard Kurth <[EMAIL PROTECTED]> wrote: > Dan Joseph wrote: > >> On Thu, May 8, 2008 at 11:47 AM, Richard Kurth < >> [EMAIL PROTECTED]> >> wrote: >> >> >> >>> I have a program that I am writing that I what to install on my server >>> that >>> can be accessed by al

RE: [PHP] Re: Re[PHP] gex to catch s

2008-05-08 Thread smulyono
If you mean then this should be okay: $tag_regex=array( '/\(.*?)\<\/p\> /si' => "$1", '/\(.*?)\<\/p\>/si' => "$2" ); $paragraphs=preg_replace(array_keys($tag_regex),array_values($tag_regex),$pa ge); $paragraphs will be the return value $page is the text with all of the tags that you want to

Re: [PHP] Setting up a program that can be accessed by all domain on a server

2008-05-08 Thread Richard Kurth
Dan Joseph wrote: On Thu, May 8, 2008 at 11:47 AM, Richard Kurth <[EMAIL PROTECTED]> wrote: I have a program that I am writing that I what to install on my server that can be accessed by all domains on the server just like it was on there domain. Could somebody give me an idea on how I can d

Re: [PHP] Setting up a program that can be accessed by all domain on a server

2008-05-08 Thread Dan Joseph
On Thu, May 8, 2008 at 11:47 AM, Richard Kurth <[EMAIL PROTECTED]> wrote: > I have a program that I am writing that I what to install on my server that > can be accessed by all domains on the server just like it was on there > domain. Could somebody give me an idea on how I can do this or point me

[PHP] Setting up a program that can be accessed by all domain on a server

2008-05-08 Thread Richard Kurth
I have a program that I am writing that I what to install on my server that can be accessed by all domains on the server just like it was on there domain. Could somebody give me an idea on how I can do this or point me to some article that tells how to set this up. -- PHP General Mailing List

Re: [PHP] Newbie - is there a function similar to the sql 'like' comparison operator?

2008-05-08 Thread Kalle Sommer Nielsen
Hi RevDave Theres the similar_text() function which calculates the procentage of te similarity between two strings. If your looking for a check to see if a string has some specified text then use the strpos() function and then the identical comparison operator to check for true and false

[PHP] Newbie - is there a function similar to the sql 'like' comparison operator?

2008-05-08 Thread revDAVE
Newbie - is there a function similar to the sql 'like' comparison operator? I would like to be able to compare 2 strings: If $this ---*like or similar to*--- $that That type of thing... I know of this page: http://us3.php.net/manual/sl/language.operators.comparison.php But I don't see somet

Re: [PHP] Difference between imagegif/imagejpeg sending to browser <-> saving to file?

2008-05-08 Thread zyro
Lo again, found my mistake.. in fact, it was the hex-to-rgb conversion not working properly in some cases. [SUBJECT CLOSED] zyro wrote: > > Hello together, > > I stumbled onto a curious problem: > i am generating a jpeg/gif with the imagejpeg/imagegif functions (type > does not alter the res

Re: [PHP] mysql query and maximum characters in sql statement

2008-05-08 Thread Sanjeev N
Hi Jim Lucas, You are correct... i want to run in the same way. but as my 2 tables, column name are different i cant run the LOAD DATA infile. And the example you mentioned for break at 100, also i thought to use in that way. but one of the column had the text type which we cant predict about th

Re: [PHP] $_SESSION v. Cookies

2008-05-08 Thread Németh Zoltán
> On Wed, May 7, 2008 at 2:35 PM, Robert Cummings <[EMAIL PROTECTED]> > wrote: > >> >> On Wed, 2008-05-07 at 14:29 -0600, Nathan Nobbe wrote: >> > On Wed, May 7, 2008 at 2:22 PM, Robert Cummings <[EMAIL PROTECTED]> >> > wrote: >> > >> > On Wed, 2008-05-07 at 16:03 -0400, tedd wrote: >> >