Re: [PHP] use preg_replace to nix and line with "display: none"

2009-08-08 Thread LinuxManMikeC
On Sun, Aug 9, 2009 at 12:17 AM, Rob Gould wrote: > I wish I could say this works, but I'm not having success with this pattern. >  All the lines with display: none are still in the $bl string. > > On Aug 9, 2009, at 1:50 AM, LinuxManMikeC wrote: > > Reserved Frontstretch > > Tower Ticket to the Ca

Re: [PHP] use preg_replace to nix and line with "display: none"

2009-08-08 Thread Rob Gould
Yay! That worked. Thanks! On Aug 9, 2009, at 1:53 AM, Michael A. Peters wrote: Rob Gould wrote: I have a bunch of bullets in a list coming from a previous post, and I need to eliminate any line from this string that contains "display: none" Reserved Frontstretch Tower Ticket to the Cam

Re: [PHP] use preg_replace to nix and line with "display: none"

2009-08-08 Thread Rob Gould
I wish I could say this works, but I'm not having success with this pattern. All the lines with display: none are still in the $bl string. On Aug 9, 2009, at 1:50 AM, LinuxManMikeC wrote: Reserved Frontstretch Tower Ticket to the Camping World 300 on Saturday Reserved Frontstretch T

Re: [PHP] use preg_replace to nix and line with "display: none"

2009-08-08 Thread Michael A. Peters
Rob Gould wrote: I have a bunch of bullets in a list coming from a previous post, and I need to eliminate any line from this string that contains "display: none" Reserved Frontstretch Tower Ticket to the Camping World 300 on Saturday Reserved Frontstretch Tower Ticket to the Daytona 500 on

Re: [PHP] use preg_replace to nix and line with "display: none"

2009-08-08 Thread LinuxManMikeC
On Sat, Aug 8, 2009 at 11:14 PM, Rob Gould wrote: > I have a bunch of bullets in a list coming from a previous post, and I need > to eliminate any line from this string that contains "display: none" > > > Reserved Frontstretch > Tower Ticket to the Camping World 300 on Saturday > Reserved Frontstr

[PHP] use preg_replace to nix and line with "display: none"

2009-08-08 Thread Rob Gould
I have a bunch of bullets in a list coming from a previous post, and I need to eliminate any line from this string that contains "display: none" Reserved Frontstretch Tower Ticket to the Camping World 300 on Saturday Reserved Frontstretch Tower Ticket to the Daytona 500 on Sunday

[PHP] Readline Thread Safety Question

2009-08-08 Thread MIke Alaimo
Hello, I am using PHP 5.3 with readline support. I read that PHP readline is never thread safe. I do not use the readline functions in a web application. What implications does this warning of thread safety have with respect to running normal web applications using apache2? Thank You,

Re: [PHP] Re: PHP programming strategy

2009-08-08 Thread Clancy
On Sat, 8 Aug 2009 07:53:42 -0400, tedd.sperl...@gmail.com (tedd) wrote: >You don't need the width="210" height="300". For example, this works: > > > > Yanni Nx > Sally Riordan Scholarship, 2007- > I have read that if you omit the dimensions you will sometimes see the page

Re: [PHP] ZCE Question

2009-08-08 Thread Eddie Drapkin
On Sat, Aug 8, 2009 at 4:18 PM, Augusto Flavio wrote: > Has someone an clue about this zce question: > > The following is a common XML structure used in service oriented > architectures, what does it represent? > > > > >  myMethod >   >   >   HI! >   >   > > > > Answer... >    None of the above

[PHP] ZCE Question

2009-08-08 Thread Augusto Flavio
Has someone an clue about this zce question: The following is a common XML structure used in service oriented architectures, what does it represent? myMethod HI! Answer... None of the above A fragment of a complete SOAP request XML-RPC REST SOAP i think t

[PHP] Re: Convert File Sizes (16M => 16777216)

2009-08-08 Thread דניאל דנון
Never mind, my bad - Looked everywhere except in ini_get documentation. Thanks anyway. On Sat, Aug 8, 2009 at 9:24 PM, דניאל דנון wrote: > Hello all :) > > I have a problem, so, Before I'll start building my own function - I was > wondering - is there any built-in function to convert 16M to 1

[PHP] Convert File Sizes (16M => 16777216)

2009-08-08 Thread דניאל דנון
Hello all :) I have a problem, so, Before I'll start building my own function - I was wondering - is there any built-in function to convert 16M to 16777216 (Including all other types of letters)? (16M = 16 * 1024 * 1024) (Its from php.ini configurations) -- Use ROT26 for best security

Re: [PHP] php external interfaces

2009-08-08 Thread Daniel Echalar
well i know the command shell_exec(), that work like console, just put de command as paramether. More info in php documentation. For COM objects for example, $word = new COM("word.application") or die("Unable to instantiate application object"); $wordDocument = new COM("word.doc

Re: [PHP] Re: dynamically naming PHP vars on the fly?

2009-08-08 Thread Nisse Engström
On Sat, 8 Aug 2009 16:25:24 +0200, "Ralph Deffke" wrote: > but then ur byond simple select, man, I do hate unions > and try to avoid those. Hear, hear! I'll look into that stuff in my next life, perhaps. /Nisse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] Re: does array_slice not work on multidimensional arrays?

2009-08-08 Thread Nisse Engström
On Sat, 08 Aug 2009 16:05:20 +0100, Ashley Sheridan wrote: > It is annoying working with arrays sometimes, as some functions work on > the actual array, while others return the results of working on the > array without changing anything. Is there any particular reason for > that? Well in this cas

Re: [PHP] Re: does array_slice not work on multidimensional arrays?

2009-08-08 Thread Ashley Sheridan
On Sat, 2009-08-08 at 12:18 -0400, Robert Cummings wrote: > John Butler wrote: > >> It is annoying working with arrays sometimes, as some functions work > >> on > >> the actual array, while others return the results of working on the > >> array without changing anything. Is there any particular

Re: [PHP] php external interfaces

2009-08-08 Thread Robert Cummings
pete123456 wrote: hi, im running php on IIS and im trying to evaluate php's capabilities regarding external interfaces. elg. executing .exe, batch files, com objects. is that all possible? does anyone have any good reference where i can find out more about this? .exe and .bat files should work

Re: [PHP] Re: does array_slice not work on multidimensional arrays?

2009-08-08 Thread Robert Cummings
John Butler wrote: It is annoying working with arrays sometimes, as some functions work on the actual array, while others return the results of working on the array without changing anything. Is there any particular reason for that? ...you mean what are the reasons for the different ways the

Re: [PHP] Re: does array_slice not work on multidimensional arrays?

2009-08-08 Thread John Butler
It is annoying working with arrays sometimes, as some functions work on the actual array, while others return the results of working on the array without changing anything. Is there any particular reason for that? ...you mean what are the reasons for the different ways the arrays work? Then y

[PHP] php external interfaces

2009-08-08 Thread pete123456
hi, im running php on IIS and im trying to evaluate php's capabilities regarding external interfaces. elg. executing .exe, batch files, com objects. is that all possible? does anyone have any good reference where i can find out more about this? thanks pete -- View this message in context: http

Re: [PHP] Server change affecting ability to send downloaded files???

2009-08-08 Thread Jerry Wilborn
http://us2.php.net/readfile Returns the number of bytes read from the file. If an error occurs, FALSE is > returned and unless the function was called as @readfile(), an error message > is printed. Ah. So readfile() was generating some error and outputting before the Content-Type was sent to the

Re: [PHP] Can php be cause a strain on a web server

2009-08-08 Thread Ashley Sheridan
On Sat, 2009-08-08 at 10:08 -0500, Jerry Wilborn wrote: > You're going to have to be more > specific. There are very few problems where this is absolutely no solution. > > Jerry Wilborn > jerrywilb...@gmail.com > > > On Sat, Aug 8, 2009 at 2:51 AM, Per Jessen wrote: > > > Curious george wrote

Re: [PHP] Can php be cause a strain on a web server

2009-08-08 Thread Jerry Wilborn
You're going to have to be more specific. There are very few problems where this is absolutely no solution. Jerry Wilborn jerrywilb...@gmail.com On Sat, Aug 8, 2009 at 2:51 AM, Per Jessen wrote: > Curious george wrote: > > > Is there a case where php can become unscalable for a web sever ? If

Re: [PHP] Notification system

2009-08-08 Thread Jerry Wilborn
I highly recommend ExtJS (htp://www.extjs.com). Jerry Wilborn jerrywilb...@gmail.com On Fri, Aug 7, 2009 at 10:22 PM, Bastien Koert wrote: > On Fri, Aug 7, 2009 at 10:25 PM, Jonathan Tapicer > wrote: > > Also, take a look at Comet Server: > > http://en.wikipedia.org/wiki/Comet_(programming) >

Re: [PHP] Re: does array_slice not work on multidimensional arrays?

2009-08-08 Thread Ashley Sheridan
On Sat, 2009-08-08 at 09:00 -0600, John Butler wrote: > >> It seems clear to me, but do you also agree that my evidence is that > >> array_slice() does NOT work on multi-dimmed arrays on v.4.3.9? > >> Here is the evidence: > >> > >> this: > >> > >> var_dump($BuildPerUniqueDateArray); > >> echo"\n\n

Re: [PHP] Re: does array_slice not work on multidimensional arrays?

2009-08-08 Thread John Butler
It seems clear to me, but do you also agree that my evidence is that array_slice() does NOT work on multi-dimmed arrays on v.4.3.9? Here is the evidence: this: var_dump($BuildPerUniqueDateArray); echo"\n\n~\n\n"; array_slice($BuildPerUniqueDateArray, 1, 2); var_dump($BuildPerUniqueDa

Re: [PHP] Re: does array_slice not work on multidimensional arrays?

2009-08-08 Thread Nisse Engström
On Sat, 8 Aug 2009 08:29:36 -0600, John Butler wrote: > It seems clear to me, but do you also agree that my evidence is that > array_slice() does NOT work on multi-dimmed arrays on v.4.3.9? > Here is the evidence: > > this: > > var_dump($BuildPerUniqueDateArray); > echo"\n\n~\n\n";

Re: [PHP] Re: does array_slice not work on multidimensional arrays?

2009-08-08 Thread John Butler
does array_slice not work on multidimensional arrays? I have one multidimensional array, and when I run it thru' array_slice() nothing happens, that I can tell. If it does not work on multidimensional arrays, what is the *simplest* workaround? (I am already working past what was budgeted for

Re: [PHP] Re: dynamically naming PHP vars on the fly?

2009-08-08 Thread Ralph Deffke
but then ur byond simple select, man, I do hate unions and try to avoid those. "Nisse Engström" wrote in message news:8b.50.40613.c518d...@pb1.pair.com... > On Sat, 8 Aug 2009 15:01:42 +0200, "Ralph Deffke" wrote: > > > of course u can do this by sql. > > > > see this > > SELECT * > > FROM `some

Re: [PHP] Server change affecting ability to send downloaded files???

2009-08-08 Thread Brian Dunning
A Rackspace guy determined that php.ini was set to use 16MB of memory, and he upped it to 32MB, and now everything works. Some of my downloads are as large as 41MB so I asked him to up it to 48MB. Maybe they upgraded the PHP version or something and wiped this setting. The 41MB files had al

Re: [PHP] Re: dynamically naming PHP vars on the fly?

2009-08-08 Thread Nisse Engström
On Sat, 8 Aug 2009 15:01:42 +0200, "Ralph Deffke" wrote: > of course u can do this by sql. > > see this > SELECT * > FROM `sometable` > LIMIT 0 , 30 > > gives u max 30 records if existstarting at record 0 > > on the next request u could say > SELECT * > FROM `sometable` > LIMIT 30 , 30 > > giv

[PHP] Re: does array_slice not work on multidimensional arrays?

2009-08-08 Thread Nisse Engström
On Fri, 7 Aug 2009 17:06:45 -0600, John Butler wrote: > does array_slice not work on multidimensional arrays? > > I have one multidimensional array, and when I run it thru' > array_slice() nothing happens, that I can tell. > > If it does not work on multidimensional arrays, what is the *simp

Re: [PHP] Re: dynamically naming PHP vars on the fly?

2009-08-08 Thread Ralph Deffke
of course u can do this by sql. see this SELECT * FROM `sometable` LIMIT 0 , 30 gives u max 30 records if existstarting at record 0 on the next request u could say SELECT * FROM `sometable` LIMIT 30 , 30 giving u max 30 recotds starting at record 30 ralph ralph_def...@yahoo.de "Nisse Engströ

Re: [PHP] Re: dynamically naming PHP vars on the fly?

2009-08-08 Thread Nisse Engström
On Thu, 6 Aug 2009 12:42:49 -0600, Govinda wrote: >> Others have mentioned variable variables. While I have >> used those, I tend to prefer arrays: > > ah, yes, I see that too, now. Thanks for reminding me about arrays. > (You must be quite adept at arrays. ) I don't know, but I often stuff t

Re: [PHP] Re: PHP programming strategy

2009-08-08 Thread Ashley Sheridan
On Sat, 2009-08-08 at 07:53 -0400, tedd wrote: > At 6:32 AM +0100 8/7/09, Ashley Sheridan wrote: > > > > > > >> > >> > >> > >>Yanni Nx > >>Sally Riordan Scholarship, 2007- > >> > >> > >> > >> > >> (And the t

Re: [PHP] Re: PHP programming strategy

2009-08-08 Thread tedd
At 6:32 AM +0100 8/7/09, Ashley Sheridan wrote: > Yanni Nx Sally Riordan Scholarship, 2007- (And the thing that really astounds me about CSS is that they never thought of putting in constants. Instead o

[PHP] Re: "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-08 Thread tedd
At 10:11 PM -0400 8/6/09, Larry Ullman wrote: -snip- Sorry for the length, but I hope that helps. And thanks again. Larry Larry: No, thank you for your most excellent books -- I think I've purchased every one one you've written. They have helped me. Cheers, tedd -- --- http://sperlin

Re: [PHP] str_replace

2009-08-08 Thread Ron Piggott
Yes I did. Thank you for confirming this with me. Ron - Original Message - From: "LinuxManMikeC" To: "Ron Piggott" Cc: ; Sent: Saturday, August 08, 2009 6:19 AM Subject: Re: [PHP] str_replace On Sat, Aug 8, 2009 at 2:08 AM, Ron Piggott wrote: Am I understanding str_replace corr

Re: [PHP] str_replace

2009-08-08 Thread LinuxManMikeC
On Sat, Aug 8, 2009 at 2:08 AM, Ron Piggott wrote: > Am I understanding str_replace correctly?  Do I have this correct or are ' > needed? > > $bible_verse_ref is what I want to change to (AKA replace) > bible_verse_ref is what I change to change from (AKA search) > $text_message_template is the st

[PHP] Re: str_replace

2009-08-08 Thread Ralph Deffke
looks good, u r searching for $bible_verse_ref in $text_message_template to be replaced by the string "bible_verse_ref". if that makes sence to u, yes its right. ralph ralph_def...@yahoo.de ""Ron Piggott"" wrote in message news:83745b9e385a4402888ba5924c296...@computera1afe9... Am I understandi

Re: [PHP] Undefined symbol "ssl_onceonlyinit"

2009-08-08 Thread Ebbe Hjorth
2009/8/8 Adam Randall > I wonder if it's downloading the imap.so as a binary instead of source > (or php as a binary instead of source). But this is the reason you are > getting the errors. It has to do with the shared libraries at build > time not matching the shared libraries at runtime (eg the

Re: [PHP] Undefined symbol "ssl_onceonlyinit"

2009-08-08 Thread Adam Randall
I wonder if it's downloading the imap.so as a binary instead of source (or php as a binary instead of source). But this is the reason you are getting the errors. It has to do with the shared libraries at build time not matching the shared libraries at runtime (eg the symbol in the shared library I'

Re: [PHP] Undefined symbol "ssl_onceonlyinit"

2009-08-08 Thread Ebbe Hjorth
Hi, Sounds like mac ports and freebsd ports i kinda the same. I tried deinstalling the extensions ports, and reinstalling it, meaning it all gets build from source once more, and it didnt help. / Ebbe 2009/8/8 Adam Randall > While I haven't used FreeBSD, the message you are getting basically

Re: [PHP] Can php be cause a strain on a web server

2009-08-08 Thread Per Jessen
Curious george wrote: > Is there a case where php can become unscalable for a web sever ? If > so can anyone please state to me how... Thanks > George Yes, any inappropriately designed application can be unscalable wherever it runs. /Per -- Per Jessen, Zürich (21.6°C) -- PHP General Mailin

[PHP] str_replace

2009-08-08 Thread Ron Piggott
Am I understanding str_replace correctly? Do I have this correct or are ' needed? $bible_verse_ref is what I want to change to (AKA replace) bible_verse_ref is what I change to change from (AKA search) $text_message_template is the string I want to manipulate $text_message = str_replace( $bible

[PHP] Undefined symbol "ssl_onceonlyinit"

2009-08-08 Thread Ebbe Hjorth
Hi, I just installed FreeBSD 7.2, Apache 2.2, php5-5.2.10 and php5-extensions 1.3, all from the freebsd ports. When i try to start apache with the imap.so extension enabled in extensions.ini, i get the error /libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so: Undefined symbol "ssl_onceonly