php-general Digest 13 Jul 2010 21:08:19 -0000 Issue 6844

2010-07-13 Thread php-general-digest-help
php-general Digest 13 Jul 2010 21:08:19 - Issue 6844 Topics (messages 306860 through 306881): Re: Static Class Member References 306860 by: Richard Quadling Re: help with sql statement 306861 by: Richard Quadling Re: Validate if the field of a form is empty 306862

Re: [PHP] Static Class Member References

2010-07-13 Thread Richard Quadling
On 12 July 2010 22:54, Daniel Kolbo kolb0...@umn.edu wrote: Richard Quadling wrote: On 11 July 2010 23:19, Daniel Kolbo kolb0...@umn.edu wrote: Hello PHPers, I'm having some trouble understanding some PHP behaviour.  The following example script exhibits the behaviour which I cannot

Re: [PHP] Static Class Member References

2010-07-13 Thread Richard Quadling
On 13 July 2010 09:46, Richard Quadling rquadl...@gmail.com wrote: On 12 July 2010 22:54, Daniel Kolbo kolb0...@umn.edu wrote: Richard Quadling wrote: On 11 July 2010 23:19, Daniel Kolbo kolb0...@umn.edu wrote: Hello PHPers, I'm having some trouble understanding some PHP behaviour.  The

Re: [PHP] help with sql statement

2010-07-13 Thread Richard Quadling
On 12 July 2010 18:34, Tommy Pham tommy...@gmail.com wrote: SELECT srs.Name FROM SMS_R_System srs WHERE srs.SystemOUName IN (example.com/COMPUTERS/MAIN CAMPUS/ABC, example.com/COMPUTERS/MAIN CAMPUS/XYZ) As this is a single table query, there is no need for the table alias. SELECT Name FROM

Re: [PHP] Validate if the field of a form is empty

2010-07-13 Thread te0t3l
It works fine for me, foreach ( $_FILES['archivo']['name'] as $file ) { //echo $file; } if($file == ){ echo empty; }else{ //continue... } Thanks a lot Jim! Te0

[PHP] Help with template file and email

2010-07-13 Thread Joey Hendricks
Hello, I have been working on a birtday invite program. The form takes 10 names and 10 email addresses. I think the problem is the $to variable in my function. I get this warning-Warning: mail() [function.mail]: SMTP server response: 550 5.5.0 f domain name required in. Could someone help

Re: [PHP] Help with template file and email

2010-07-13 Thread Richard Quadling
On 13 July 2010 14:56, Joey Hendricks j.hendrick...@comcast.net wrote: Hello,  I have been working on a birtday invite program. The form takes 10 names and 10 email addresses. I think the problem is the $to variable in my function. I get this warning-Warning: mail() [function.mail]: SMTP

[PHP] Posting values of dynamically generated text fields at a time

2010-07-13 Thread Amit Bobade
Hi is anybody there to help me out on this? Hi all, I am new to PHP and JS. I am adding new text fields using javascript and I have to save the values of these fields in database in single row. So, how should I post these values? So that I can save them in the db. Additional Info:

[PHP] XML parser

2010-07-13 Thread ppps...@gmail.com
Hello. I have html: h3Header/h3 pParagraph 1/p pParagraph n/p div h3Header/h3 pParagraph 1/p pParagraph n/p /div need to parse it like this array: array( [0] = array( 'h3' = 'header' , 'p' = array( [0] = 'Paragraph 1' , [n-1] = 'Paragraph N' ) [1] = array( ['div'] = array ( 'h3' =

Re: [PHP] Posting values of dynamically generated text fields at a time

2010-07-13 Thread Richard Quadling
On 13 July 2010 15:06, Amit Bobade a...@e-arth.in wrote: Hi is anybody there to help me out on this? Hi all, I am new to PHP and JS. I am adding new text fields using javascript and I have to save the values of these fields in database in single row. So, how should I post these

[PHP] Re: PHP question

2010-07-13 Thread Richard Quadling
On 13 July 2010 15:46, Joey Hendricks j.hendrick...@comcast.net wrote: Hi Mr. Quadling,  Thank you for the reply. I still don't understand how to get all the emails into the function. Before I put in the function I had something like this- for($i=0; $i=9; $i++) { if(!empty($_GET[email.$i]))

RE: [PHP] Help with template file and email

2010-07-13 Thread Carlos Sura
Let me get this right... $mymail // If you put an email adress it works, right. You are calling variable $mymail... But, what does contain that var? You are calling $mymail, there has to be a database, or something of those 10 mails you said. -If i'm getting you the point right- If not, my

Re: [PHP] XML parser

2010-07-13 Thread Andrew Ballard
On Tue, Jul 13, 2010 at 10:14 AM, ppps...@gmail.com ppps...@gmail.com wrote: Hello. I have html: h3Header/h3 pParagraph 1/p pParagraph n/p div h3Header/h3 pParagraph 1/p     pParagraph n/p /div need to parse it like this array: array( [0] = array( 'h3' = 'header' , 'p' =

[PHP] running out of memory processing result set on Linux, but not on Solaris

2010-07-13 Thread Larry Martell
I have an app that runs just fine on an older Solaris apache server (Apache/2.0.53 PHP/5.0.4), but when I run the same app on a newer Linux server (Apache/2.2.3-11 PHP/5.2.8) against the same database on the same mysql server, it fails with Allowed memory size exhausted. This occurs on a: $result

Re: [PHP] running out of memory processing result set on Linux, but not on Solaris

2010-07-13 Thread Ashley Sheridan
On Tue, 2010-07-13 at 11:06 -0600, Larry Martell wrote: I have an app that runs just fine on an older Solaris apache server (Apache/2.0.53 PHP/5.0.4), but when I run the same app on a newer Linux server (Apache/2.2.3-11 PHP/5.2.8) against the same database on the same mysql server, it fails

[PHP] calendar libs

2010-07-13 Thread Ricardo Martinez
Hi! i'm looking for a good calendar libs, want ask, if anyone knows a good library. thx! Ricardo

Re: [PHP] calendar libs

2010-07-13 Thread David Hutto
On Tue, Jul 13, 2010 at 2:04 PM, Ricardo Martinez harisel...@gmail.com wrote: Hi! i'm looking for a good calendar libs, want ask, if anyone knows a good library. thx! Ricardo This may hel, it's just a simple search for 'php calendar' : http://www.php-calendar.com/ -- PHP General

Re: [PHP] calendar libs

2010-07-13 Thread David Hutto
On Tue, Jul 13, 2010 at 2:10 PM, David Hutto smokefl...@gmail.com wrote: On Tue, Jul 13, 2010 at 2:04 PM, Ricardo Martinez harisel...@gmail.com wrote: Hi! i'm looking for a good calendar libs, want ask, if anyone knows a good library. thx! Ricardo This may hel, it's just a simple

Re: [PHP] calendar libs

2010-07-13 Thread David Hutto
On Tue, Jul 13, 2010 at 2:14 PM, David Hutto smokefl...@gmail.com wrote: On Tue, Jul 13, 2010 at 2:10 PM, David Hutto smokefl...@gmail.com wrote: On Tue, Jul 13, 2010 at 2:04 PM, Ricardo Martinez harisel...@gmail.com wrote: Hi! i'm looking for a good calendar libs, want ask, if anyone knows

Re: [PHP] adduser php

2010-07-13 Thread Nathan Nobbe
On Sat, Jul 10, 2010 at 2:39 PM, Matt M. cmorrow...@gmail.com wrote: The only thing is, when I execute this command from a shell, it works. Obviously I'm replacing $username and $password with something valid when doing this manually. It's like the script clears the $username variable just

Re: [PHP] adduser php

2010-07-13 Thread Ashley Sheridan
On Tue, 2010-07-13 at 12:56 -0600, Nathan Nobbe wrote: On Sat, Jul 10, 2010 at 2:39 PM, Matt M. cmorrow...@gmail.com wrote: The only thing is, when I execute this command from a shell, it works. Obviously I'm replacing $username and $password with something valid when doing this

Re: [PHP] running out of memory processing result set on Linux, but not on Solaris

2010-07-13 Thread Larry Martell
On Tue, Jul 13, 2010 at 11:11 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-07-13 at 11:06 -0600, Larry Martell wrote: I have an app that runs just fine on an older Solaris apache server (Apache/2.0.53 PHP/5.0.4), but when I run the same app on a newer Linux server

Re: [PHP] running out of memory processing result set on Linux, but not on Solaris

2010-07-13 Thread Ashley Sheridan
On Tue, 2010-07-13 at 14:22 -0600, Larry Martell wrote: On Tue, Jul 13, 2010 at 11:11 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-07-13 at 11:06 -0600, Larry Martell wrote: I have an app that runs just fine on an older Solaris apache server (Apache/2.0.53

Re: [PHP] running out of memory processing result set on Linux, but not on Solaris

2010-07-13 Thread Nathan Nobbe
On Tue, Jul 13, 2010 at 11:06 AM, Larry Martell la...@software-horizons.com wrote: I have an app that runs just fine on an older Solaris apache server (Apache/2.0.53 PHP/5.0.4), but when I run the same app on a newer Linux server (Apache/2.2.3-11 PHP/5.2.8) against the same database on the

Re: [PHP] Static Class Member References

2010-07-13 Thread Daniel Kolbo
Richard Quadling wrote: On 12 July 2010 22:54, Daniel Kolbo kolb0...@umn.edu wrote: Richard Quadling wrote: On 11 July 2010 23:19, Daniel Kolbo kolb0...@umn.edu wrote: Hello PHPers, I'm having some trouble understanding some PHP behaviour. The following example script exhibits the

Re: [PHP] Static Class Member References

2010-07-13 Thread Daniel Kolbo
Richard Quadling wrote: On 13 July 2010 09:46, Richard Quadling rquadl...@gmail.com wrote: On 12 July 2010 22:54, Daniel Kolbo kolb0...@umn.edu wrote: Richard Quadling wrote: On 11 July 2010 23:19, Daniel Kolbo kolb0...@umn.edu wrote: Hello PHPers, I'm having some trouble understanding some