[PHP] Why the difference in email transit times?

2013-08-13 Thread Tedd Sperling
Hi gang: I'm using the class.phpmailer.php code to send email -- it works neat -- very classy (no pun intended). I can send an email from my sperling.com domain and it arrives almost immediately. However, when I use the exact same code (except for the FROM address) from kvyv.com (another

Re: [PHP] why is (intval('444-44444') == '444-44444') EQUAL??!

2012-06-22 Thread ma...@behnke.biz
Daevid Vincent dae...@daevid.com hat am 22. Juni 2012 um 04:27 geschrieben: Huh? Why is this equal??! http://de2.php.net/manual/en/language.types.type-juggling.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] why is (intval('444-44444') == '444-44444') EQUAL??!

2012-06-21 Thread Daevid Vincent
Huh? Why is this equal??! php $id = '444-4'; php var_dump($id, intval($id)); string(9) 444-4 int(444) php if (intval($id) == $id) echo 'equal'; else echo 'not equal'; equal or in other words: php if (intval('444-4') ==

Re: [PHP] why is (intval('444-44444') == '444-44444') EQUAL??!

2012-06-21 Thread Robert Cummings
On 12-06-21 10:27 PM, Daevid Vincent wrote: Huh? Why is this equal??! php $id = '444-4'; php var_dump($id, intval($id)); string(9) 444-4 int(444) php if (intval($id) == $id) echo 'equal'; else echo 'not equal'; equal or in other

Re: [PHP] why is (intval('444-44444') == '444-44444') EQUAL??!

2012-06-21 Thread Mike Mackintosh
Using == will compare the two values after type juggling is performed. === will compare based on value and type (identical). PHP Will type juggle the string to an integer. Your if/else is just like saying: php if (444 == 444) echo 'equal'; else echo 'not equal'; equal -- Mike Mackintosh PHP

[PHP] Why might fclose() block?

2012-05-03 Thread Andy Theuninck
I'm currently seeing this in 5.3.10, although it's an intermittent problem I've seen earlier versions too. Occasionally I get a maximum execution time error when calling fclose() on a parallel port file descriptor. Code looks like this: $fp = fopen('/dev/lp0','w'); if ($fp){

[PHP] Why does this script run out of memory?

2011-10-28 Thread Jim Long
I'm running PHP 5.3.8 on FreeBSD 8.2 with MySQL 5.1.55. The script below is designed to be able to WHILE it's way through a MySQL query result set, and process each row. However, it runs out of memory a little after a quarter million rows. The schema fields total to about 200 bytes per row, so

Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Eric Butera
On Fri, Oct 28, 2011 at 12:38 PM, Jim Long p...@umpquanet.com wrote: I'm running PHP 5.3.8 on FreeBSD 8.2 with MySQL 5.1.55. The script below is designed to be able to WHILE it's way through a MySQL query result set, and process each row. However, it runs out of memory a little after a

Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Jim Long
On Fri, Oct 28, 2011 at 01:21:36PM -0400, Eric Butera wrote: On Fri, Oct 28, 2011 at 12:38 PM, Jim Long p...@umpquanet.com wrote: I'm running PHP 5.3.8 on FreeBSD 8.2 with MySQL 5.1.55. The script below is designed to be able to WHILE it's way through a MySQL query result set, and process

Re: Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread James
Original Message From: Eric Butera eric.but...@gmail.com To: Jim Long p...@umpquanet.com Cc: php-general@lists.php.net Sent: Fri, Oct 28, 2011, 1:22 PM Subject: Re: [PHP] Why does this script run out of memory? On Fri, Oct 28, 2011 at 12:38 PM, Jim Long p...@umpquanet.com wrote: I'm

Re: Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Ashley Sheridan
On Fri, 2011-10-28 at 13:32 -0400, James wrote: Original Message From: Eric Butera eric.but...@gmail.com To: Jim Long p...@umpquanet.com Cc: php-general@lists.php.net Sent: Fri, Oct 28, 2011, 1:22 PM Subject: Re: [PHP] Why does this script run out of memory? On Fri, Oct 28

Re: Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Jim Long
On Fri, Oct 28, 2011 at 01:32:32PM -0400, James wrote: On Fri, Oct 28, 2011 at 12:38 PM, Jim Long p...@umpquanet.com wrote: I'm running PHP 5.3.8 on FreeBSD 8.2 with MySQL 5.1.55. The script below is designed to be able to WHILE it's way through a MySQL query result set, and process

Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Jim Giner
If all you want to do is count the records, why are you not letting sql do it for you instead of doing the while loop? That's all that script is doing, if that is the exact code you ran. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Daniel Brown
On Fri, Oct 28, 2011 at 14:05, Jim Long p...@umpquanet.com wrote: the tail end of the output becomes:  274695    134202232  274696    134202672  274697    134203112  274698    134203552  274699    134203992 PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to

Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Daniel Brown
On Fri, Oct 28, 2011 at 13:25, Jim Long p...@umpquanet.com wrote: Eric: Thanks for your reply. process row here is a comment.  It doesn't do anything.  The script, exactly as shown, runs out of memory, exactly as shown. My response presumes that you're planning on placing something

Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Jim Long
On Fri, Oct 28, 2011 at 03:24:37PM -0400, Jim Giner wrote: If all you want to do is count the records, why are you not letting sql do it for you instead of doing the while loop? That's all that script is doing, if that is the exact code you ran. Hi, Jim. Thank you for replying. One of

Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Eric Butera
On Fri, Oct 28, 2011 at 3:29 PM, Daniel Brown danbr...@php.net wrote: On Fri, Oct 28, 2011 at 13:25, Jim Long p...@umpquanet.com wrote: Eric: Thanks for your reply. process row here is a comment.  It doesn't do anything.  The script, exactly as shown, runs out of memory, exactly as shown.

Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Daniel Brown
On Fri, Oct 28, 2011 at 16:21, Jim Long p...@umpquanet.com wrote: I will try experimenting with Daniel's idea of unbuffered queries, but my understanding is that while an unbuffered result resource is in use, no other SQL transactions can be conducted. Maybe I can get around that by using one

Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Jim Long
On Fri, Oct 28, 2011 at 03:42:48PM -0400, Eric Butera wrote: On Fri, Oct 28, 2011 at 3:29 PM, Daniel Brown danbr...@php.net wrote: On Fri, Oct 28, 2011 at 13:25, Jim Long p...@umpquanet.com wrote: Eric: Thanks for your reply. process row here is a comment. ??It doesn't do anything.

Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Tommy Pham
On Fri, Oct 28, 2011 at 9:38 AM, Jim Long p...@umpquanet.com wrote: I'm running PHP 5.3.8 on FreeBSD 8.2 with MySQL 5.1.55. Jim, Installed from packages or standard port tree build? Did you do any tweak for the ports build? Any special compiler parameters in your make.conf? I've noticed

Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Paul Halliday
On Fri, Oct 28, 2011 at 1:38 PM, Jim Long p...@umpquanet.com wrote: I'm running PHP 5.3.8 on FreeBSD 8.2 with MySQL 5.1.55. The script below is designed to be able to WHILE it's way through a MySQL query result set, and process each row. However, it runs out of memory a little after a

[PHP] mysql_fetch_array() vs mysql_fetch_assoc() WAS: Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Daniel Brown
On Fri, Oct 28, 2011 at 18:13, Paul Halliday paul.halli...@gmail.com wrote: Whats the difference between fetch_assoc and fetch_row? I use: while ($row = mysql_fetch_row($theQuery)) {    doCartwheel; } on just under 300 million rows and nothing craps out. I have memory_limit set to 4GB

Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Jim Long
On Fri, Oct 28, 2011 at 02:57:02PM -0700, Tommy Pham wrote: On Fri, Oct 28, 2011 at 9:38 AM, Jim Long p...@umpquanet.com wrote: I'm running PHP 5.3.8 on FreeBSD 8.2 with MySQL 5.1.55. Jim, Installed from packages or standard port tree build? Did you do any tweak for the ports build?

[PHP] Re: mysql_fetch_array() vs mysql_fetch_assoc() WAS: Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Paul Halliday
On Fri, Oct 28, 2011 at 7:19 PM, Daniel Brown danbr...@php.net wrote: On Fri, Oct 28, 2011 at 18:13, Paul Halliday paul.halli...@gmail.com wrote: Whats the difference between fetch_assoc and fetch_row? I use: while ($row = mysql_fetch_row($theQuery)) {    doCartwheel; } on just under 300

Re: [PHP] mysql_fetch_array() vs mysql_fetch_assoc() WAS: Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Jim Long
On Fri, Oct 28, 2011 at 06:19:56PM -0400, Daniel Brown wrote: On Fri, Oct 28, 2011 at 18:13, Paul Halliday paul.halli...@gmail.com wrote: Whats the difference between fetch_assoc and fetch_row? I use: while ($row = mysql_fetch_row($theQuery)) { ? ?doCartwheel; } on just under

Re: [PHP] mysql_fetch_array() vs mysql_fetch_assoc() WAS: Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Daniel Brown
On Fri, Oct 28, 2011 at 18:48, Jim Long p...@umpquanet.com wrote: I'm not seeing any numeric keys in my mysql_fetch_assoc() arrays. You're absolutely correct, that's my mistake: substitute mysql_fetch_row() for mysql_fetch_assoc(). Duh. Time to call it a week -- /Daniel P. Brown

Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread shiplu
I had a spider written in PHP long ago. I had similar problems. because there were millions of rows of urls and I was fetching them in one single query. See inline, could this modification help you. Please test. On Fri, Oct 28, 2011 at 10:38 PM, Jim Long p...@umpquanet.com wrote: I'm running

[PHP] Why count() returns no error when string is given ?

2011-08-16 Thread rsk82
For example when I do: strlen(array(1,2,3)); php shows: Warning: strlen() expects parameter 1 to be string, array given in... but when I do: count('string'); It simply returns 1 like nothing happened. I would expect such behavior if I write: count((array)'string') but otherwise such

Re: [PHP] Why count() returns no error when string is given ?

2011-08-16 Thread Florian Lemaitre
Le 16/08/2011 16:29, rs...@live.com a écrit : For example when I do: strlen(array(1,2,3)); php shows: Warning: strlen() expects parameter 1 to be string, array given in... but when I do: count('string'); It simply returns 1 like nothing happened. I would expect such behavior if I

Re: [PHP] Why count() returns no error when string is given ?

2011-08-16 Thread Florian Lemaitre
Le 16/08/2011 16:32, Florian Lemaitre a écrit : Le 16/08/2011 16:29, rs...@live.com a écrit : For example when I do: strlen(array(1,2,3)); php shows: Warning: strlen() expects parameter 1 to be string, array given in... but when I do: count('string'); It simply returns 1 like nothing

Re: [PHP] Why count() returns no error when string is given ?

2011-08-16 Thread rsk82
Hello Florian, Tuesday, August 16, 2011, 4:32:39 PM, you wrote: manual : function.count.php Returns the number of elements in/var/. If/var/is not an array or an object with implementedCountable http://www.php.net/manual/en/class.countable.phpinterface,/1/will be returned. There is one

Re: [PHP] Why count() returns no error when string is given ?

2011-08-16 Thread Florian Lemaitre
Le 16/08/2011 16:50, rs...@live.com a écrit : Hello Florian, Tuesday, August 16, 2011, 4:32:39 PM, you wrote: manual : function.count.php Returns the number of elements in/var/. If/var/is not an array or an object with implementedCountable

[PHP] Why Is the Zend debugger this too slow?

2011-05-31 Thread Ali Asghar Toraby Parizy
Hi I've installed pdt and zend debugger. But when I start debugging as web page it takes a long time to start the debugging for each page. Browser remains in waiting status for farther than 10 or 20 seconds before loading a page. But after that debugging seems to be comfortable. I think there is a

[PHP] Why Constants could Not be Array?

2011-04-30 Thread Walkinraven
For needing a constants=array, I have to use 'public static $a = array(...)' instead. Why the language could not relax the restriction of constants? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why Constants could Not be Array?

2011-04-30 Thread Stuart Dallas
On Saturday, 30 April 2011 at 10:51, Walkinraven wrote: For needing a constants=array, I have to use 'public static $a = array(...)' instead. Why the language could not relax the restriction of constants? As I understand it constants must be declarations not evaluations because they're

Re: [PHP] Why Constants could Not be Array?

2011-04-30 Thread Andre Polykanine
Original message From: Walkinraven walkinra...@gmail.com To: php-general@lists.php.net Date created: , 12:51:15 PM Subject: [PHP] Why Constants could Not be Array? For needing a constants=array, I have to use 'public static $a = array(...)' instead. Why the language

Re: [PHP] Why Constants could Not be Array?

2011-04-30 Thread Stuart Dallas
://3ft9.com/ Original message From: Walkinraven walkinra...@gmail.com To: php-general@lists.php.net Date created: , 12:51:15 PM Subject: [PHP] Why Constants could Not be Array? For needing a constants=array, I have to use 'public static $a = array

Re: [PHP] Why is this array_walk_recursive action not working? [SOLVED]

2011-02-25 Thread Dave M G
Feln, Richard, Jim, Thank you for responding. I understand now that the problem wasn't with variable scope, but with my lack of understanding of what array_walk_recursive returns. Thank you all for your explanations. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To

[PHP] Why is this array_walk_recursive action not working?

2011-02-24 Thread Dave M G
PHP users, I obviously don't understand what array_walk_recursive does. Can someone break down in simple terms why the following doesn't work? - - - $karamohOutput['test'] = ; function test_print($item, $key) { return $key holds $item\n; } $karamohOutput['test'] .=

Re: [PHP] Why is this array_walk_recursive action not working?

2011-02-24 Thread FeIn
Hi, How does the input array look like (the contents of the $karamohArray variable) ? Is your script generating any errors? What do you expect to happen when you call array_walk_recursive? On Thu, Feb 24, 2011 at 1:01 PM, Dave M G mar...@autotelic.com wrote: PHP users, I obviously don't

Re: [PHP] Why is this array_walk_recursive action not working?

2011-02-24 Thread Dave M G
FeIn, Thank you for responding. what did you expect to happen when you call array_walk_recursive? What I don't understand is why it did not append to the string as it walked through each key/value pair. It seems like even though the variable inside the function called by

Re: [PHP] Why is this array_walk_recursive action not working?

2011-02-24 Thread FeIn
Hi, Well, first array_walk_recursive returns a boolean so what you are doing in you script is append a boolean (true or false) that will be converted to string. So if array_walk_recursive will return true you will have the string 1 in $karamohOutput['test'], and if array_walk_recursive will

Re: [PHP] Why is this array_walk_recursive action not working?

2011-02-24 Thread Richard Quadling
On 24 February 2011 15:15, Dave M G mar...@autotelic.com wrote: FeIn, Thank you for responding. what did you expect to happen when you call array_walk_recursive? What I don't understand is why it did not append to the string as it walked through each key/value pair. It seems like even

Re: [PHP] Why is this array_walk_recursive action not working?

2011-02-24 Thread Jim Lucas
On 2/24/2011 3:01 AM, Dave M G wrote: PHP users, I obviously don't understand what array_walk_recursive does. Can someone break down in simple terms why the following doesn't work? - - - $karamohOutput['test'] = ; function test_print($item, $key) { return $key holds $item\n;

[PHP] Why the PEAR hate?

2010-11-16 Thread Hansen, Mike
http://www.reddit.com/r/PHP/comments/e6zs1/how_many_of_you_use_pear_in_your_projects/ I'm still pretty new to PHP. Why the hate for PEAR? I've used a couple of PEAR modules without any issues. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Why the PEAR hate?

2010-11-16 Thread Daniel Brown
On Tue, Nov 16, 2010 at 11:54, Hansen, Mike mike.han...@atmel.com wrote: http://www.reddit.com/r/PHP/comments/e6zs1/how_many_of_you_use_pear_in_your_projects/ I'm still pretty new to PHP. Why the hate for PEAR? I've used a couple of PEAR modules without any issues. Some of the PEAR

Re: [PHP] Why the PEAR hate?

2010-11-16 Thread knl
On Tue, 16 Nov 2010 09:54:30 -0700 Hansen, Mike mike.han...@atmel.com wrote: http://www.reddit.com/r/PHP/comments/e6zs1/how_many_of_you_use_pear_in_your_projects/ I'm still pretty new to PHP. Why the hate for PEAR? I've used a couple of PEAR modules without any issues. The few times I have

FW: [PHP] Why the PEAR hate?

2010-11-16 Thread Hansen, Mike
-Original Message- From: Hansen, Mike Sent: Tuesday, November 16, 2010 10:24 AM To: 'Daniel Brown' Subject: RE: [PHP] Why the PEAR hate? -Original Message- From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of Daniel Brown Some of the PEAR stuff

Re: FW: [PHP] Why the PEAR hate?

2010-11-16 Thread Richard Quadling
On 16 November 2010 17:25, Hansen, Mike mike.han...@atmel.com wrote: -Original Message- From: Hansen, Mike Sent: Tuesday, November 16, 2010 10:24 AM To: 'Daniel Brown' Subject: RE: [PHP] Why the PEAR hate? -Original Message- From: paras...@gmail.com [mailto:paras

Re: FW: [PHP] Why the PEAR hate?

2010-11-16 Thread Daniel Brown
On Tue, Nov 16, 2010 at 12:25, Hansen, Mike mike.han...@atmel.com wrote: Is PEAR supposed to be the CPAN for PHP, or is there another  repository of PHP modules that is used by the typical PHP developer? PEAR is to PHP what CPAN is to Perl, yes but there's really no such thing as PHP

Re: FW: [PHP] Why the PEAR hate?

2010-11-16 Thread Steve Staples
On Tue, 2010-11-16 at 10:25 -0700, Hansen, Mike wrote: -Original Message- From: Hansen, Mike Sent: Tuesday, November 16, 2010 10:24 AM To: 'Daniel Brown' Subject: RE: [PHP] Why the PEAR hate? -Original Message- From: paras...@gmail.com [mailto:paras...@gmail.com

Re: [PHP] Why is there HTML in the error_log output? Please make it stop.

2010-06-12 Thread Peter Lind
On 12 June 2010 01:17, Daevid Vincent dae...@daevid.com wrote: I'm trying to clean up some code and have been looking at error_log output and they all look like this: [11-Jun-2010 23:04:54] font color='red'bIn /var/www/my_notifications.php, line 40:  WARNING/b Invalid argument supplied for

Re: [PHP] Why is there HTML in the error_log output? Please make it stop.

2010-06-12 Thread Peter Lind
On 12 June 2010 11:23, Peter Lind peter.e.l...@gmail.com wrote: On 12 June 2010 01:17, Daevid Vincent dae...@daevid.com wrote: I'm trying to clean up some code and have been looking at error_log output and they all look like this: [11-Jun-2010 23:04:54] font color='red'bIn

[PHP] Why is there HTML in the error_log output? Please make it stop.

2010-06-11 Thread Daevid Vincent
I'm trying to clean up some code and have been looking at error_log output and they all look like this: [11-Jun-2010 23:04:54] font color='red'bIn /var/www/my_notifications.php, line 40: WARNING/b Invalid argument supplied for foreach() /font I can't figure out: [a] why the logs are in

[PHP] Why does CURLOPT_FOLLOWLOCATION require open_basedir to be turned off?

2009-12-13 Thread Alex S Kurilo
I was wondering why CURLOPT_FOLLOWLOCATION requires open_basedir and safe_mode to be turned off. The following was found in the changelog(http://www.php.net/ChangeLog-5.php): Disabled CURLOPT_FOLLOWLOCATION in curl when open_basedir or safe_mode are enabled. (Stefan E., Ilia) Also I read

Re: [PHP] Why does CURLOPT_FOLLOWLOCATION require open_basedir to be turned off?

2009-12-13 Thread Andy Shellam (Mailing Lists)
Hi, I was wondering why CURLOPT_FOLLOWLOCATION requires open_basedir and safe_mode to be turned off. The following was found in the changelog(http://www.php.net/ChangeLog-5.php): Disabled CURLOPT_FOLLOWLOCATION in curl when open_basedir or safe_mode are enabled. (Stefan E., Ilia) I'm

Re: [PHP] Why does CURLOPT_FOLLOWLOCATION require open_basedir to be turned off?

2009-12-13 Thread Alex S Kurilo
I can't see any conceivable benefit to this restriction when using open_basedir, as I thought that related to the local file system - unless CURL can use file:// URLs to access the local system? That's the problem. I always use open_basedir (not all the sites on my servers are safe enough).

Re: [PHP] Why getcwd() returs different results?

2009-11-05 Thread Raymond Irving
-function.php It's a known problem but I can't see why this can't be fixed From: Ashley Sheridan a...@ashleysheridan.co.uk To: Raymond Irving xwis...@yahoo.com Cc: PHP-General List php-general@lists.php.net Sent: Thu, November 5, 2009 6:09:19 AM Subject: Re: [PHP] Why

[PHP] Why aren't you rich? (was Re: unset() something that doesn't exist)

2009-08-26 Thread Tom Worster
On 8/26/09 10:08 AM, tedd tedd.sperl...@gmail.com wrote: I had a client say to me once If you're so smart, then why aren't you rich? how about: i'm smart enough that i know not to waste my allotted time on this planet amassing riches. i know plenty of rich people, many of whom earned their

Re: [PHP] Why aren't you rich? (was Re: unset() something that doesn't exist)

2009-08-26 Thread Richard Heyes
Hi, time is really what i want more of. Personally I'd settle for a Ferrari. Or two. It would be hard, but I think I could just about manage. -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 8th August) Lots of PHP and Javascript code - http://www.phpguru.org 50% reseller

Re: [PHP] Why aren't you rich? (was Re: unset() something that doesn't exist)

2009-08-26 Thread Robert Cummings
Richard Heyes wrote: Hi, time is really what i want more of. Personally I'd settle for a Ferrari. Or two. It would be hard, but I think I could just about manage. Might look nice in your driveway... But without the time to drive it... :| ;) -- http://www.interjinn.com Application and

Re: [PHP] Why aren't you rich? (was Re: unset() something that doesn't exist)

2009-08-26 Thread Richard Heyes
Hi, time is really what i want more of. Personally I'd settle for a Ferrari. Or two. It would be hard, but I think I could just about manage. Might look nice in your driveway... But without the time to drive it... :| ;) I actually don't have a driving license either... :-/ -- Richard

Re: [PHP] Why aren't you rich? (was Re: unset() something that doesn't exist)

2009-08-26 Thread Jason Pruim
On Aug 26, 2009, at 1:23 PM, Tom Worster wrote: On 8/26/09 10:08 AM, tedd tedd.sperl...@gmail.com wrote: I had a client say to me once If you're so smart, then why aren't you rich? how about: i'm smart enough that i know not to waste my allotted time on this planet amassing riches. i

Re: [PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-20 Thread Stuart
2009/7/19 Paul M Foster pa...@quillandmouse.com: On Sun, Jul 19, 2009 at 07:18:34PM +0100, Stuart wrote: 2009/7/19 Paul M Foster pa...@quillandmouse.com: On Sun, Jul 19, 2009 at 09:30:33AM +0530, kranthi wrote: You do realize that PHP does not parse HTML files, right? The web server

Re: [PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-19 Thread Stuart
2009/7/19 Jim Lucas li...@cmsws.com: Govinda wrote: Hi all, ..sitting here thinking this is so easy, and I must have been over this already in the past..  but it is eluding me just now.. I can't figure out why files with the .html extension ARE being parsed by PHP when they are in the

Re: [PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-19 Thread Paul M Foster
On Sun, Jul 19, 2009 at 09:30:33AM +0530, kranthi wrote: You do realize that PHP does not parse HTML files, right? The web server does that. In fact, the web server also parses PHP files, using a different library. Kindly elaborate If you are saying that PHP cant parse files with

Re: [PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-19 Thread Ashley Sheridan
On Sun, 2009-07-19 at 14:07 -0400, Paul M Foster wrote: On Sun, Jul 19, 2009 at 09:30:33AM +0530, kranthi wrote: You do realize that PHP does not parse HTML files, right? The web server does that. In fact, the web server also parses PHP files, using a different library. Kindly

Re: [PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-19 Thread Stuart
2009/7/19 Paul M Foster pa...@quillandmouse.com: On Sun, Jul 19, 2009 at 09:30:33AM +0530, kranthi wrote: You do realize that PHP does not parse HTML files, right? The web server does that. In fact, the web server also parses PHP files, using a different library. Kindly elaborate If you

[PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-18 Thread Govinda
Hi all, ..sitting here thinking this is so easy, and I must have been over this already in the past.. but it is eluding me just now.. I can't figure out why files with the .html extension ARE being parsed by PHP when they are in the main doc root dir/, or in one subdirectory down from

Re: [PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-18 Thread Govinda
On Jul 18, 2009, at 6:36 PM, Adam Shannon wrote: On Sat, Jul 18, 2009 at 7:01 PM, Govinda govinda.webdnat...@gmail.com wrote: Hi all, ..sitting here thinking this is so easy, and I must have been over this already in the past.. but it is eluding me just now.. I can't figure out why

Re: [PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-18 Thread Adam Shannon
On Sat, Jul 18, 2009 at 7:54 PM, Govinda govinda.webdnat...@gmail.comwrote: On Jul 18, 2009, at 6:36 PM, Adam Shannon wrote: On Sat, Jul 18, 2009 at 7:01 PM, Govinda govinda.webdnat...@gmail.comwrote: Hi all, ..sitting here thinking this is so easy, and I must have been over this

Re: [PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-18 Thread Adam Shannon
On Sat, Jul 18, 2009 at 7:01 PM, Govinda govinda.webdnat...@gmail.comwrote: Hi all, ..sitting here thinking this is so easy, and I must have been over this already in the past.. but it is eluding me just now.. I can't figure out why files with the .html extension ARE being parsed by PHP

Re: [PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-18 Thread Paul M Foster
On Sat, Jul 18, 2009 at 06:01:14PM -0600, Govinda wrote: Hi all, ..sitting here thinking this is so easy, and I must have been over this already in the past.. but it is eluding me just now.. I can't figure out why files with the .html extension ARE being parsed by PHP when they are in the

Re: [PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-18 Thread kranthi
i never used x-mapp-php5, but most of a forums say it is specific to 1and1 hosting service. php recommends application/x-httpd-php http://us2.php.net/manual/en/install.unix.apache2.php try adding AddType application/x-httpd-php .html in your root htaccess if that dosent help you'll have to add

Re: [PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-18 Thread Govinda
Just add this to your root .htaccess AddType x-mapp-php5 .html Thanks Adam. But still no luck. I did add that line to the .htaccess file in my doc root, but my file.html in subdir/ is still not being parsed by PHP. ?? Try to put that same line of .htaccess into the sub directory. Your

Re: [PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-18 Thread Govinda
You do realize that PHP does not parse HTML files, right? The web server does that. In fact, the web server also parses PHP files, using a different library. I understand. I just was saying it that way. Actually I rarely think too deeply about that specifically, but now that you pointed

Re: [PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-18 Thread Jim Lucas
Govinda wrote: Hi all, ..sitting here thinking this is so easy, and I must have been over this already in the past.. but it is eluding me just now.. I can't figure out why files with the .html extension ARE being parsed by PHP when they are in the main doc root dir/, or in one subdirectory

[PHP] why is this SIMPLE elseif not firing?

2009-07-15 Thread Govinda
Sorry this is isn't good 'ninja' material.. but I gotta start where I am. this: echo 'is set (EditExistingClient) ='. isset($EditExistingClient).br / \n; is returning: is set (EditExistingClient) =1br / but this, later down the page: elseif ((isset($EditExistingClient)) ||

Re: [PHP] why is this SIMPLE elseif not firing?

2009-07-15 Thread Jim Lucas
Govinda wrote: Sorry this is isn't good 'ninja' material.. but I gotta start where I am. this: echo 'is set (EditExistingClient) ='. isset($EditExistingClient).br /\n; I realize this is after the fact, but... The above does not indicate WHAT it is set too. Just that it is set. it

Re: [PHP] why is this SIMPLE elseif not firing?

2009-07-15 Thread Govinda
I realize this is after the fact, but... The above does not indicate WHAT it is set too. Just that it is set. it could be set to /null/, FALSE, or 0 and they would all return false, and fail, in your if condition later on. I understand. I appreciate your taking the time to explain

Re: [PHP] why is this SIMPLE elseif not firing?

2009-07-15 Thread Stuart
2009/7/15 Govinda govinda.webdnat...@gmail.com: Sorry this is isn't good 'ninja' material..  but I gotta start where I am. this: echo 'is set (EditExistingClient) ='. isset($EditExistingClient).br /\n; is returning: is set (EditExistingClient) =1br / but this, later down the page: elseif

Re: [PHP] why is this SIMPLE elseif not firing?

2009-07-15 Thread Stuart
Oops, clearly too early in the morning to be looking at code. Sorry. -Stuart 2009/7/16 Stuart stut...@gmail.com: 2009/7/15 Govinda govinda.webdnat...@gmail.com: Sorry this is isn't good 'ninja' material..  but I gotta start where I am. this: echo 'is set (EditExistingClient) ='.

[PHP] why is this shell_exec() failing to execute my shell to create a symlink?

2009-06-27 Thread Govinda
this code: ?php $testOutput = shell_exec(ls); $where2cd2='testDir/'; $firstCMD=cd $where2cd2; $firstOutput = shell_exec($firstCMD); // $firstOutput = shell_exec('cd testDir/'); $testOutput2 = shell_exec(ls); $secondCMD='ln -s

Re: [PHP] why is this shell_exec() failing to execute my shell to create a symlink?

2009-06-27 Thread Jonathan Tapicer
Make sure that: - The user executing the script (apache I presume) has execute permissions on ls and ln binaries. - The user executing the script has write persmissions on the directory you are trying to write, and read permissions where you do ls. - This will probably help: put the full binary

[PHP] Why does simpleXML give me nested objects for blank tags?

2009-06-22 Thread Daevid Vincent
Repost as I got zero replies. Does anyone know why this is? Seems like a bug to me, or at least should be documented as such whacky behavior. Are there any solutions to this or work-arounds? -Original Message- From: Daevid Vincent [mailto:dae...@daevid.com] Sent: Thursday, June 18, 2009

Re: [PHP] Why does simpleXML give me nested objects for blank tags?

2009-06-22 Thread Nathan Nobbe
On Mon, Jun 22, 2009 at 2:13 PM, Daevid Vincent dae...@daevid.com wrote: Repost as I got zero replies. Does anyone know why this is? Seems like a bug to me, or at least should be documented as such whacky behavior. Are there any solutions to this or work-arounds? -Original Message-

[PHP] Why does simpleXML give me nested objects for blank tags?

2009-06-18 Thread Daevid Vincent
I'm trying to use http://us2.php.net/manual/en/function.simplexml-load-string.php $xml_url = file_get_contents('http://myserver/cgi-bin/dart.cgi?request=c901c906e4d06a0d 4bd4e2932379d7c6'); try { $xml = simplexml_load_string($xml_url, 'SimpleXMLElement', LIBXML_NOBLANKS LIBXML_COMPACT

Re: [PHP] Re: [Bulk] Re: [PHP] Why [?php while (true) { sleep(5); } ?] dies on CLI?

2009-06-13 Thread Ashley Sheridan
On Thu, 2009-06-11 at 20:52 +0200, Jean-Pierre Arneodo wrote: Ashley Sheridan a écrit : On Thu, 2009-06-11 at 10:47 +, Jean-Pierre Arneodo wrote: Hi! I'm stuck. I don't understand why the php CLI dies after 3 hours in my script. Any idea to solve? Thanks PHP

[PHP] Re: [Bulk] Re: [PHP] Re: [Bulk] Re: [PHP] Why [?php while (true) { sleep(5); } ?] dies on CLI?

2009-06-13 Thread Jean-Pierre Arneodo
Ashley Sheridan a écrit : On Thu, 2009-06-11 at 20:52 +0200, Jean-Pierre Arneodo wrote: Ashley Sheridan a écrit : On Thu, 2009-06-11 at 10:47 +, Jean-Pierre Arneodo wrote: Hi! I'm stuck. I don't understand why the php CLI dies after 3 hours in my script. Any idea to

[PHP] Why [?php while (true) { sleep(5); } ?] dies on CLI?

2009-06-11 Thread Jean-Pierre Arneodo
Hi! I'm stuck. I don't understand why the php CLI dies after 3 hours in my script. Any idea to solve? Thanks PHP 5.2.9-0.dotdeb.2 with Suhosin-Patch 0.9.7 (cli) (built: Apr 7 2009 20:06:36) Linux ubuntu 2.6.24-19-server #1 SMP Wed Jun 18 14:44:47 UTC 2008 x86_64 GNU/Linux Conf [php.ini]

Re: [PHP] Why [?php while (true) { sleep(5); } ?] dies on CLI?

2009-06-11 Thread Ashley Sheridan
On Thu, 2009-06-11 at 10:47 +, Jean-Pierre Arneodo wrote: Hi! I'm stuck. I don't understand why the php CLI dies after 3 hours in my script. Any idea to solve? Thanks PHP 5.2.9-0.dotdeb.2 with Suhosin-Patch 0.9.7 (cli) (built: Apr 7 2009 20:06:36) Linux ubuntu 2.6.24-19-server

RE: [PHP] Why [?php while (true) { sleep(5); } ?] dies on CLI?

2009-06-11 Thread Ford, Mike
On 11 June 2009 12:00, Ashley Sheridan advised: On Thu, 2009-06-11 at 10:47 +, Jean-Pierre Arneodo wrote: Hi! I'm stuck. I don't understand why the php CLI dies after 3 hours in my script. Any idea to solve? Thanks PHP 5.2.9-0.dotdeb.2 with Suhosin-Patch 0.9.7 (cli) (built: Apr 7

Re: [PHP] Why [?php while (true) { sleep(5); } ?] dies on CLI?

2009-06-11 Thread Eddie Drapkin
try set_time_limit(0) ? On Thu, Jun 11, 2009 at 8:05 AM, Ford, Mike m.f...@leedsmet.ac.uk wrote: On 11 June 2009 12:00, Ashley Sheridan advised: On Thu, 2009-06-11 at 10:47 +, Jean-Pierre Arneodo wrote: Hi! I'm stuck. I don't understand why the php CLI dies after 3 hours in my

Re: [PHP] Why [?php while (true) { sleep(5); } ?] dies on CLI?

2009-06-11 Thread Robert Cummings
Ford, Mike wrote: On 11 June 2009 12:00, Ashley Sheridan advised: On Thu, 2009-06-11 at 10:47 +, Jean-Pierre Arneodo wrote: Hi! I'm stuck. I don't understand why the php CLI dies after 3 hours in my script. Any idea to solve? Thanks PHP 5.2.9-0.dotdeb.2 with Suhosin-Patch 0.9.7 (cli)

RE: [PHP] Why [?php while (true) { sleep(5); } ?] dies on CLI?

2009-06-11 Thread kyle.smith
any of these crazy ideas are helpful... - Kyle -- Kyle Smith Unix Systems Administrator -Original Message- From: Robert Cummings [mailto:rob...@interjinn.com] Sent: Thursday, June 11, 2009 8:25 AM To: Ford, Mike Cc: php-general@lists.php.net Subject: Re: [PHP] Why [?php while (true

[PHP] Re: [Bulk] Re: [PHP] Why [?php while (true) { sleep(5); } ?] dies on CLI?

2009-06-11 Thread Jean-Pierre Arneodo
Ashley Sheridan a écrit : On Thu, 2009-06-11 at 10:47 +, Jean-Pierre Arneodo wrote: Hi! I'm stuck. I don't understand why the php CLI dies after 3 hours in my script. Any idea to solve? Thanks PHP 5.2.9-0.dotdeb.2 with Suhosin-Patch 0.9.7 (cli) (built: Apr 7 2009 20:06:36) Linux

Re: [PHP] Re: [Bulk] Re: [PHP] Why [?php while (true) { sleep(5); } ?] dies on CLI?

2009-06-11 Thread Robert Cummings
Jean-Pierre Arneodo wrote: Ashley Sheridan a écrit : On Thu, 2009-06-11 at 10:47 +, Jean-Pierre Arneodo wrote: Hi! I'm stuck. I don't understand why the php CLI dies after 3 hours in my script. Any idea to solve? Thanks PHP 5.2.9-0.dotdeb.2 with Suhosin-Patch 0.9.7 (cli) (built: Apr 7

Re: [PHP] Why doesn't mySQL stop a query when the browser tab is closedL

2009-06-03 Thread AngeloZanetti
Bastien Koert-3 wrote: On Jun 2, 2009, at 21:13, Daevid Vincent dae...@daevid.com wrote: I just noticed a horrible thing. I have a query (report) that can take 15 minutes or more to generate with mySQL. We have 500 Million rows. This used to be done in real time when we had

[PHP] Why doesn't mySQL stop a query when the browser tab is closedL

2009-06-02 Thread Daevid Vincent
I just noticed a horrible thing. I have a query (report) that can take 15 minutes or more to generate with mySQL. We have 500 Million rows. This used to be done in real time when we had less rows, but recently we got a big dump of data that shot it up. So, noticing via myTop the query taking

Re: [PHP] Why doesn't mySQL stop a query when the browser tab is closedL

2009-06-02 Thread Phpster
On Jun 2, 2009, at 21:13, Daevid Vincent dae...@daevid.com wrote: I just noticed a horrible thing. I have a query (report) that can take 15 minutes or more to generate with mySQL. We have 500 Million rows. This used to be done in real time when we had less rows, but recently we got a

  1   2   3   4   5   6   7   8   9   10   >