php-general Digest 8 Aug 2009 07:51:46 -0000 Issue 6273

2009-08-08 Thread php-general-digest-help
php-general Digest 8 Aug 2009 07:51:46 - Issue 6273 Topics (messages 296434 through 296456): Re: curl_exec not hit server 296434 by: Tom Worster 296435 by: Jerry Wilborn Buffered Logging? 296436 by: Waynn Lue 296441 by: Jerry Wilborn 296447 by:

php-general Digest 8 Aug 2009 20:18:44 -0000 Issue 6274

2009-08-08 Thread php-general-digest-help
php-general Digest 8 Aug 2009 20:18:44 - Issue 6274 Topics (messages 296457 through 296492): Undefined symbol ssl_onceonlyinit 296457 by: Ebbe Hjorth 296459 by: Ebbe Hjorth 296460 by: Adam Randall 296461 by: Ebbe Hjorth str_replace 296458 by: Ron

[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

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

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 Mailing

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 randa...@gmail.com While I haven't used FreeBSD, the message you are

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

Re: [PHP] Undefined symbol ssl_onceonlyinit

2009-08-08 Thread Ebbe Hjorth
2009/8/8 Adam Randall randa...@gmail.com 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

[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 ron@actsministries.org wrote in message

Re: [PHP] str_replace

2009-08-08 Thread LinuxManMikeC
On Sat, Aug 8, 2009 at 2:08 AM, Ron Piggottron@actsministries.org 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)

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 linuxmanmi...@gmail.com To: Ron Piggott ron@actsministries.org Cc: php-general@lists.php.net; phps...@gmail.com Sent: Saturday, August 08, 2009 6:19 AM Subject: Re: [PHP] str_replace

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

Re: [PHP] Re: PHP programming strategy

2009-08-08 Thread tedd
At 6:32 AM +0100 8/7/09, Ashley Sheridan wrote: table class=pfm tr td img src=Images/Nx.jpg width=210 height=300 p class=nrmltextnYanni Nx /p p class=notetextnSally Riordan Scholarship, 2007- /p /td /tr /table

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: table class=pfm tr td img src=Images/Nx.jpg width=210 height=300 p class=nrmltextnYanni Nx /p p class=notetextnSally Riordan

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 things

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

[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 *simplest*

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 giving u max 30

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

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 news.nospam.0ixbt...@luden.se 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

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

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
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);

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] 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 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 reason for

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 case

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:

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

[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

[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, דניאל דנון danondan...@gmail.com 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

[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? ?xml version=1.0? methodCall methodNamemyMethod/methodName params param valuestringHI!/string/value /param /params /methodCall

Re: [PHP] ZCE Question

2009-08-08 Thread Eddie Drapkin
On Sat, Aug 8, 2009 at 4:18 PM, Augusto Flavioafla...@gmail.com 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? ?xml version=1.0? methodCall  methodNamemyMethod/methodName  params

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: div class=pfm img src=Images/Nx.jpg p class=nrmltextnYanni Nx /p p class=notetextnSally Riordan Scholarship, 2007- /p /div I have

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

[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 li id=bullet_ug1_col2_9 style=display: list-item;Reserved Frontstretch Tower Ticket to the Camping World 300 on Saturday /li li id=bullet_2_9

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 Gouldgould...@mac.com 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 li id=bullet_ug1_col2_9 style=display: list-item;Reserved Frontstretch Tower Ticket

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 li id=bullet_ug1_col2_9 style=display: list-item;Reserved Frontstretch Tower Ticket to the Camping World 300 on Saturday /li li