php-general Digest 8 May 2008 07:24:31 -0000 Issue 5447

2008-05-08 Thread php-general-digest-help
php-general Digest 8 May 2008 07:24:31 - Issue 5447 Topics (messages 273999 through 274027): Re: Regex to catch ps (weird result) 273999 by: Ryan S 274000 by: Ryan S 274001 by: Shawn McKenzie 274002 by: Shawn McKenzie 274004 by: Ryan S 274005

php-general Digest 8 May 2008 21:37:47 -0000 Issue 5448

2008-05-08 Thread php-general-digest-help
php-general Digest 8 May 2008 21:37:47 - Issue 5448 Topics (messages 274028 through 274038): Re: mysql query and maximum characters in sql statement 274028 by: Sanjeev N Re: Difference between imagegif/imagejpeg sending to browser - saving to file? 274029 by: zyro Newbie -

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: At 12:34 PM -0400

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 result).

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

[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

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] 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] 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 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 do

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

2008-05-08 Thread smulyono
If you mean p class='something'/p then this should be okay: $tag_regex=array( '/\p\(.*?)\\/p\ /si' = $1, '/\p(\s*)class\=(*.?)\(.*?)\\/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

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 all domains on the server

[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 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 accessed

[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...

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

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] wrote: I have a program that I

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

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 put

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

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 a

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 the map

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 an in-house CRM app