Re: [PHP] MySQL to blame? (was Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?)

2008-01-02 Thread Chris
M5 wrote: On 20-Dec-07, at 1:17 AM, Per Jessen wrote: René Fournier wrote: I'm really not sure what to try next. ps -aux shows MySQL as hogging the CPU, not PHP or Terminal: When this happens, do a 'SHOW PROCESSLIST' in mysql to see what it's doing. I have, and I can't see anything unusu

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 1:38 AM +0100 1/3/08, Jochem (mobile) wrote: tedd schreef: At 3:11 PM -0500 1/2/08, Wolf wrote: > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Wolf Nice idea, but the submit button has to have the value of A. well

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 7:36 PM, tedd <[EMAIL PROTECTED]> wrote: > At 6:42 PM -0500 1/2/08, Daniel Brown wrote: > >On Jan 2, 2008 6:32 PM, tedd <[EMAIL PROTECTED]> wrote: > > > > > Nope, it produces: > >> > >> %C2%C2%C2%C2%C2A%C2%C2%C2 > >> > >> Thanks for trying :-) > > > > Why is it that things wor

Re: [PHP] automatic caller

2008-01-02 Thread tedd
blackwater dev wrote: I'm working on a prototype now and was wondering if anyone new of a service where I could pass in text and a number and the service would call the number and read the text. I know I can do this with asterisk and it's php api but don't have time to set up all the outgoin

Re: [PHP] automatic caller

2008-01-02 Thread Jim Lucas
blackwater dev wrote: > I'm working on a prototype now and was wondering if anyone new of a service > where I could pass in text and a number and the service would call the > number and read the text. I know I can do this with asterisk and it's php > api but don't have time to set up all the outgo

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 4:34 PM -0800 1/2/08, Jim Lucas wrote: tedd wrote: At 2:34 PM -0800 1/2/08, Jim Lucas wrote: This I think shows what tedd is looking for. so, from this I deduce that this should work. >> $submit = trim($submit, "\xA0\x20"); What do you guys/gals think? > Nope, not a winner. But

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-02 Thread tedd
At 6:42 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 6:32 PM, tedd <[EMAIL PROTECTED]> wrote: > Nope, it produces: %C2%C2%C2%C2%C2A%C2%C2%C2 Thanks for trying :-) Why is it that things work perfectly for me until you test them? It's because I have a tester. You see, it's ea

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Jim Lucas
tedd wrote: > At 2:34 PM -0800 1/2/08, Jim Lucas wrote: >> This I think shows what tedd is looking for. >> >> so, from this I deduce that this should work. >> >> $submit = trim($submit, "\xA0\x20"); >> >> What do you guys/gals think? > > Nope, not a winner. But it produces some interesting results

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 6:32 PM, tedd <[EMAIL PROTECTED]> wrote: > At 3:36 PM -0500 1/2/08, Daniel Brown wrote: > >On Jan 2, 2008 3:16 PM, Wolf <[EMAIL PROTECTED]> wrote: > >[snip="all"] > > > > Okay, first of all, Tedd's right my thing didn't work, because > >I had copied over a script I was workin

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 12:27 PM -0800 1/2/08, Casey wrote: $value = trim($value, chr(32) . chr(160)); Cookie for me? :) -- -Casey No cookie for you. It didn't work. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 3:20 PM -0500 1/2/08, Robert Cummings wrote: Nope, still didn't work for going from this: to this: A via $submit = $_POST['submit']; Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 3:16 PM -0500 1/2/08, Wolf wrote: > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php $string="       A       "; $string=str_replace(" ","",$string); $string=ltrim(rtrim($string))); echo "The string is now:$string\n"; Outputs: The stri

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 3:11 PM -0500 1/2/08, Wolf wrote: > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Wolf Nice idea, but the submit button has to have the value of A. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http:/

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 4:15 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 4:08 PM, Casey <[EMAIL PROTECTED]> wrote: ... *pokes my solution*... $value = trim($value, chr(32) . chr(160)); You're solution is good, Casey we're just ignoring you because you smell funny. I'm not ignoring him -- it don

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 1:08 PM -0800 1/2/08, Casey wrote: OKAY. Let's clarify. Here's the string in HTML:        A        The browser then passes it to GET/POST. It decodes the entities, and then urlencodes them. Now it looks like this: %a0%20%a0%20%a0%20%a0A%a0%20%a0%20%a0%20%a0 Then PHP receives it, urldecodes

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 2:58 PM -0600 1/2/08, Richard Lynch wrote: Works for me: [EMAIL PROTECTED] ~/cd $ php -a Interactive mode enabled b:A c: A That would work for that, but not for this: Go from this: via this: $submit = $_POST['submit'] to: A It doesn't appear as simple as what people think it

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 3:36 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 3:16 PM, Wolf <[EMAIL PROTECTED]> wrote: [snip="all"] Okay, first of all, Tedd's right my thing didn't work, because I had copied over a script I was working with on the CLI. Secondly, the trim() and str_replace() things wo

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 2:34 PM -0800 1/2/08, Jim Lucas wrote: This I think shows what tedd is looking for. so, from this I deduce that this should work. $submit = trim($submit, "\xA0\x20"); What do you guys/gals think? Nope, not a winner. But it produces some interesting results. Cheers, tedd -- --- http

[PHP] Re: automatic caller

2008-01-02 Thread Dan
""blackwater dev"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I'm working on a prototype now and was wondering if anyone new of a service where I could pass in text and a number and the service would call the number and read the text. I know I can do this with asterisk and it's

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Jim Lucas
Richard Lynch wrote: > On Wed, January 2, 2008 1:27 pm, Jim Lucas wrote: >>> The string contains: >>> >>>        A        >>> >> The problem is, is that you are not getting >> >>        A        >> when you submit your form. >> >> It is being URL encoded by the browser and you are actually getting

[PHP] Re: Fatal error: Function name must be a string

2008-01-02 Thread M. Sokolewicz
Adam Williams wrote: I'm getting the following error and I don't see whats wrong with my line. Any ideas? *Fatal error*: Function name must be a string in */var/www/sites/intra-test/contract/perform.php* on line *57* and my snippet of code is: if ( $_POST["perform"] == "View Contracts" )

Re: [PHP] Fatal error: Function name must be a string

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 4:58 PM, Adam Williams <[EMAIL PROTECTED]> wrote: > I'm getting the following error and I don't see whats wrong with my > line. Any ideas? > > *Fatal error*: Function name must be a string in > */var/www/sites/intra-test/contract/perform.php* on line *57* > > and my snippet of code

[PHP] Fatal error: Function name must be a string

2008-01-02 Thread Adam Williams
I'm getting the following error and I don't see whats wrong with my line. Any ideas? *Fatal error*: Function name must be a string in */var/www/sites/intra-test/contract/perform.php* on line *57* and my snippet of code is: if ( $_POST["perform"] == "View Contracts" ) { $mysql

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Robert Cummings
On Wed, 2008-01-02 at 16:15 -0500, Daniel Brown wrote: > On Jan 2, 2008 4:08 PM, Casey <[EMAIL PROTECTED]> wrote: > > ... *pokes my solution*... > > $value = trim($value, chr(32) . chr(160)); > > You're solution is good, Casey we're just ignoring you because > you smell funny. Is that wha

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 4:08 PM, Casey <[EMAIL PROTECTED]> wrote: > ... *pokes my solution*... > $value = trim($value, chr(32) . chr(160)); You're solution is good, Casey we're just ignoring you because you smell funny. -- Daniel P. Brown [Phone Numbers Go Here!] [They're Hidden From View!] If a

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Casey
On Jan 2, 2008 12:58 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Wed, January 2, 2008 2:09 pm, tedd wrote: > > At 1:25 PM -0600 1/2/08, Jack Mays wrote: > > >On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECTED]> wrote: > from this: > >        A        > > to this A >

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 3:58 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > Works for me: > > [EMAIL PROTECTED] ~/cd $ php -a > Interactive mode enabled > > $a = '       A       '; > $b = str_replace(' ', '', $a); > echo "b: $b\n\n"; > $c = trim($b); > echo "c: $c\n\n"; > ?> > b:A > > c: A Tedd's

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Richard Lynch
On Wed, January 2, 2008 2:09 pm, tedd wrote: > At 1:25 PM -0600 1/2/08, Jack Mays wrote: >On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECTED]> wrote: from this:        A        to this A >> >>Read the docs for trim, you can't use it inline with other >>functions, it will

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 3:16 PM, Wolf <[EMAIL PROTECTED]> wrote: [snip="all"] Okay, first of all, Tedd's right my thing didn't work, because I had copied over a script I was working with on the CLI. Secondly, the trim() and str_replace() things work great from the CLI, but not when transmogrif

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Casey
On Jan 2, 2008 12:11 PM, tedd <[EMAIL PROTECTED]> wrote: > At 2:36 PM -0500 1/2/08, Nathan Nobbe wrote: > >and yes several people posted nearly identical solutions. > > > >i know its futile to complain, sort of like the [SOLVED] thing we discussed > >a while back. > >well i just find it annoying wh

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Robert Cummings
I could have replaced ' ' with the empty string, but in case you have labels with more than one word I took a normalizing approach. Cheers, Rob. On Wed, 2008-01-02 at 13:34 -0500, tedd wrote: > Hi gang: > > I have a > > $submit = $_POST['submit']; > > The string contains: > >        A     

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Wolf
tedd <[EMAIL PROTECTED]> wrote: > At 1:25 PM -0600 1/2/08, Jack Mays wrote: > >>> > On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECTED]> wrote: > >>>from this: > >>> > >>>       A        > >>> > >>>to this A > > > >Read the docs for trim, you can't use it inline with other > >functions, it

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Janet Valade
tedd wrote: However, I still have not been able to remove   from a string. IThe trim(str_replace(' ','',$submit)); seems to work fine for me when I assign the string from your message to $submit. Copy/pasted it. Have you looked at $submit with var_dump before you tried to change it? Perhap

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 2:36 PM -0500 1/2/08, Nathan Nobbe wrote: and yes several people posted nearly identical solutions. i know its futile to complain, sort of like the [SOLVED] thing we discussed a while back. well i just find it annoying when people dont bother to read through the currently posted solutions bef

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Wolf
tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > I have a > > $submit = $_POST['submit']; > > The string contains: > >        A        > > (it's there to make a submit button wider) > > How can I strip out the " " from the $submit string leaving "A"? > > I've tried > > trim($submit

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 7:36 PM + 1/2/08, Dave Goodchild wrote: don't use nonbreaking spaces use CSS to style the input button then you wont have to deal with redundant presentational gunk in your data OK! But, do you have a solution to the original question? Cheers, tedd -- --- http://sperling.com http

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 1:25 PM -0600 1/2/08, Jack Mays wrote: On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECTED]> wrote: from this:        A        to this A Read the docs for trim, you can't use it inline with other functions, it will not trim the input. you have to seperate it out, e.g.: $submit = str_re

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 11:10 AM -0800 1/2/08, Jim Lucas wrote: I prefer this approach instead. button, input[type=submit], input[type=reset], input[type=button] { width: 250px; } I prefer this: in css .button {

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 1:29 PM -0600 1/2/08, Jack Mays wrote: Just so we have all the info, why are you wanting to do this? Why not just have the button text be what you want it instead of trying to do manipulation on it's value? Why? It was just a mistaken assumption that I could not style a submit button and

Re: [PHP] Wrong parameter count for imap_open()

2008-01-02 Thread Richard Lynch
On Wed, January 2, 2008 9:00 am, Adam Williams wrote: > I'm running PHP 5.2.4 and getting the error: > > *Warning*: Wrong parameter count for imap_open() in > */var/www/sites/intra-test/contract/login.php* on line *9 > > *My code is: > > $mbox = > imap_open("\"{mail.mdah.state.ms.us/imap/novalida

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Richard Lynch
On Wed, January 2, 2008 1:25 pm, Jack Mays wrote: > Daniel Brown wrote: // Your existing code here $submit = trim(str_replace(' ','',$submit); > > Read the docs for trim, you can't use it inline with other functions, Please point to the specific portion of the docs in which you imagi

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 11:27 AM -0800 1/2/08, Jim Lucas wrote: Note: You might wonder why trim(html_entity_decode(' ')); doesn't reduce the string to an empty string, that's because the ' ' entity is not ASCII code 32 (which is stripped by trim()) but ASCII code 160 (0xa0) in the default ISO 8859-1 characterset.

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Richard Lynch
On Wed, January 2, 2008 1:27 pm, Jim Lucas wrote: >> The string contains: >> >>        A        >> > The problem is, is that you are not getting > >        A        > when you submit your form. > > It is being URL encoded by the browser and you are actually getting > >  %20 %20 %20&n

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Richard Lynch
echo trim(str_replace(' ', '', $submit); On Wed, January 2, 2008 12:34 pm, tedd wrote: > Hi gang: > > I have a > > $submit = $_POST['submit']; > > The string contains: > >        A        > > (it's there to make a submit button wider) > > How can I strip out the " " from the $submit string leaving

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 2:22 PM -0500 1/2/08, Nathan Nobbe wrote: first off; i think css is the way to go w/ this; -snip No, you are absolutely correct. The problem was that I was in a rush and forgot that I had used a class but had defined an id in my css. or maybe this is the first stupid response of the year

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 11:27 AM -0800 1/2/08, Jim Lucas wrote: The problem is, is that you are not getting Apparently, that makes two of us. :-)        A        when you submit your form. It is being URL encoded by the browser and you are actually getting  %20 %20 %20 A %20 %20&n

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 1:26 PM, afan pasalic <[EMAIL PROTECTED]> wrote: > Since you don't use   any more > style="width:160px;align:center;text-align:center;" /> > you don't need > $submit = trim(str_replace(' ','',$submit)); > right? Negative. That was to show how Form B is handled. > Also (fine t

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Nathan Nobbe
On Jan 2, 2008 2:27 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > Nathan Nobbe wrote: > > i wonder what the record will be this year for the number of identical > > responses > > to a question in a single thread ;) > > looks like this one is already out in front! > > > > -nathan > > > > problem is, m

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Dave Goodchild
don't use nonbreaking spaces use CSS to style the input button then you wont have to deal with redundant presentational gunk in your data On 1/2/08, David Giragosian <[EMAIL PROTECTED]> wrote: > On 1/2/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > > > On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECT

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Jack Mays
Daniel Brown wrote: On Jan 2, 2008 2:05 PM, tedd <[EMAIL PROTECTED]> wrote: At 1:57 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECTED]> wrote: from this:        A        to this A Read the docs for trim, you can't use it inline with other functions, it

Re: [PHP] First stupid post of the year.

2008-01-02 Thread afan pasalic
Daniel Brown wrote: > On Jan 2, 2008 2:05 PM, tedd <[EMAIL PROTECTED]> wrote: >> At 1:57 PM -0500 1/2/08, Daniel Brown wrote: >>> On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECTED]> wrote: >> from this: >> >>        A        >> >> to this A >> >>> >> // Your existing code here >>> $submit = trim(s

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 2:18 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 2:05 PM, tedd <[EMAIL PROTECTED]> wrote: At 1:57 PM -0500 1/2/08, Daniel Brown wrote: >On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECTED]> wrote: from this:        A        to this A >// Your existing code here > >$submit =

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Jack Mays
tedd wrote: Hi gang: I have a $submit = $_POST['submit']; The string contains:        A        (it's there to make a submit button wider) How can I strip out the " " from the $submit string leaving "A"? I've tried trim($submit); but, that don't work. Neither does: $submit = str_r

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Jim Lucas
tedd wrote: > Hi gang: > > I have a > > $submit = $_POST['submit']; > > The string contains: > >        A        > > (it's there to make a submit button wider) > > How can I strip out the " " from the $submit string leaving "A"? > > I've tried > >trim($submit); > > but, that don't work

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Jim Lucas
Nathan Nobbe wrote: > i wonder what the record will be this year for the number of identical > responses > to a question in a single thread ;) > looks like this one is already out in front! > > -nathan > problem is, most of the responses have not answered the OP's inital question. It wasn't abo

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 2:10 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > I prefer this approach instead. > > > > > > button, > input[type=submit], > input[type=reset], > input[type=button] { > width: 250px; > } > > > > >

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
Hi gang: My apologies to all who responded with a css solution -- css DOES indeed work!. I went from using tags, which could be styled, but IE had problems with them -- to using submit buttons that IE could use, but my css no longer worked. The reason why my css no longer worked was I used:

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Nathan Nobbe
On Jan 2, 2008 2:05 PM, tedd <[EMAIL PROTECTED]> wrote: > At 1:57 PM -0500 1/2/08, Daniel Brown wrote: > >On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECTED]> wrote: > > from this: > >        A        > > to this A > > > >// Your existing code here > >$submit = trim(str_replace(' ','',$submit); >

RE: [PHP] First stupid post of the year.

2008-01-02 Thread Bastien Koert
if you need to make the button wider, just style it with css and leave the value to be what it needs to be > Date: Wed, 2 Jan 2008 13:34:43 -0500> To: php-general@lists.php.net> From: [EMAIL PROTECTED]> Subject: [PHP] First stupid post of the year.> > Hi gang:> > I have a> > $submit = $_POST

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 2:05 PM, tedd <[EMAIL PROTECTED]> wrote: > At 1:57 PM -0500 1/2/08, Daniel Brown wrote: > >On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECTED]> wrote: > > from this: > >        A        > > to this A > > > >// Your existing code here > >$submit = trim(str_replace(' ','',$submit); > >

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Nathan Nobbe
i wonder what the record will be this year for the number of identical responses to a question in a single thread ;) looks like this one is already out in front! -nathan

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Jim Lucas
Nathan Nobbe wrote: > On Jan 2, 2008 1:55 PM, tedd <[EMAIL PROTECTED]> wrote: > >> At 1:46 PM -0500 1/2/08, Nathan Nobbe wrote: >>> On Jan 2, 2008 1:34 PM, tedd >>> <[EMAIL PROTECTED]> wrote: >>> >>> >>>        A        >>> >>> (it's there to make a submit button wider) >

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 1:57 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECTED]> wrote: from this:        A        to this A Even with adding an additional ")", that didn't work either. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://eart

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Scott Wilcox
Add it inline, and it'll override everything else. tedd wrote: At 1:46 PM -0500 1/2/08, Nathan Nobbe wrote: On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECTED]> wrote:        A        (it's there to make a submit button wider) why dont you just style the button w/

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Afan Pasalic
tedd wrote: At 1:46 PM -0500 1/2/08, Nathan Nobbe wrote: On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECTED]> wrote:        A        (it's there to make a submit button wider) why dont you just style the button w/ css? style="width:200px" -nathan -nathan: Have y

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 1:55 PM, tedd <[EMAIL PROTECTED]> wrote: > At 1:46 PM -0500 1/2/08, Nathan Nobbe wrote: > >On Jan 2, 2008 1:34 PM, tedd > ><[EMAIL PROTECTED]> wrote: > > > > > >       A        > > > >(it's there to make a submit button wider) > > > > > >why dont you just st

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Nathan Nobbe
On Jan 2, 2008 1:55 PM, tedd <[EMAIL PROTECTED]> wrote: > At 1:46 PM -0500 1/2/08, Nathan Nobbe wrote: > >On Jan 2, 2008 1:34 PM, tedd > ><[EMAIL PROTECTED]> wrote: > > > > > >       A        > > > >(it's there to make a submit button wider) > > > > > >why dont you just s

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > I have a > > $submit = $_POST['submit']; > > The string contains: > >        A        > > (it's there to make a submit button wider) > > How can I strip out the " " from the $submit string leaving "A"? > > I've tried > > tri

RE: [PHP] First stupid post of the year.

2008-01-02 Thread Warren Vail
I often identify each of my submit buttons with different names and identify which one was pressed by; If(isset($_POST["submit1"])) Only one will ever be pressed at a time, and that allows me to use the same page with multiple languages (substituting different values for different languages). As

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 1:46 PM -0500 1/2/08, Nathan Nobbe wrote: On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECTED]> wrote:        A        (it's there to make a submit button wider) why dont you just style the button w/ css? style="width:200px" -nathan -nathan: Have you tried that

Re: [PHP] First stupid post of the year.

2008-01-02 Thread David Giragosian
On 1/2/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECTED]> wrote: > > > Hi gang: > > > > I have a > > > > $submit = $_POST['submit']; > > > > The string contains: > > > >        A        > > > > (it's there to make a submit button wider) > > > > How can

Re: [PHP] best way for PHP page

2008-01-02 Thread tedd
At 8:17 AM +0100 1/2/08, Alain Roger wrote: the purpose of my post is to know if i can really (at 100%) split client code (display images, write text,...) from server code (move or copy data to DB, create connection objects,...) so what do you think about that ? Alain: What do I think about t

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Nathan Nobbe
On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > I have a > > $submit = $_POST['submit']; > > The string contains: > >        A        > > (it's there to make a submit button wider) > > How can I strip out the " " from the $submit string leaving "A"? > > I've tried > >tri

[PHP] First stupid post of the year.

2008-01-02 Thread tedd
Hi gang: I have a $submit = $_POST['submit']; The string contains:        A        (it's there to make a submit button wider) How can I strip out the " " from the $submit string leaving "A"? I've tried trim($submit); but, that don't work. Neither does: $submit = str_replace(' ',''

Re: [PHP] automatic caller

2008-01-02 Thread Nathan Nobbe
On Jan 2, 2008 12:23 PM, blackwater dev <[EMAIL PROTECTED]> wrote: > I'm working on a prototype now and was wondering if anyone new of a > service > where I could pass in text and a number and the service would call the > number and read the text. I know I can do this with asterisk and it's php >

Re: [PHP] Wrong parameter count for imap_open()

2008-01-02 Thread Jim Lucas
Adam Williams wrote: > I'm running PHP 5.2.4 and getting the error: > > *Warning*: Wrong parameter count for imap_open() in > */var/www/sites/intra-test/contract/login.php* on line *9 > > *My code is: > > $mbox = > imap_open("\"{mail.mdah.state.ms.us/imap/novalidate-cert:143}INBOX\", > \"".$_POS

[PHP] automatic caller

2008-01-02 Thread blackwater dev
I'm working on a prototype now and was wondering if anyone new of a service where I could pass in text and a number and the service would call the number and read the text. I know I can do this with asterisk and it's php api but don't have time to set up all the outgoing code/functionality. Does

Re: [PHP] best way for PHP page

2008-01-02 Thread Dave Goodchild
If MVC is too heavy for you it may also be worth exploring templating engines such as Smarty: http://www.smarty.net/ On Jan 2, 2008 4:10 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 2, 2008 2:17 AM, Alain Roger <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > i would like to improve my codi

Re: [PHP] best way for PHP page

2008-01-02 Thread Nathan Nobbe
On Jan 2, 2008 2:17 AM, Alain Roger <[EMAIL PROTECTED]> wrote: > Hi, > > i would like to improve my coding quality when i use PHP code and for that > i > would request your help. > in my web developer experience, i have to confess that i've never > succeeded > in spliting PHP code from HTML code.

Re: [PHP] Wrong parameter count for imap_open()

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 10:00 AM, Adam Williams <[EMAIL PROTECTED]> wrote: > I'm running PHP 5.2.4 and getting the error: > > *Warning*: Wrong parameter count for imap_open() in > */var/www/sites/intra-test/contract/login.php* on line *9 > > *My code is: > > $mbox = > imap_open("\"{mail.mdah.state.ms.us/ima

Re: [PHP] best way for PHP page

2008-01-02 Thread Brady Mitchell
i would like to improve my coding quality when i use PHP code and for that i would request your help. in my web developer experience, i have to confess that i've never succeeded in spliting PHP code from HTML code. There's a myth that by separating html and php your code is cleaner, it's

[PHP] Wrong parameter count for imap_open()

2008-01-02 Thread Adam Williams
I'm running PHP 5.2.4 and getting the error: *Warning*: Wrong parameter count for imap_open() in */var/www/sites/intra-test/contract/login.php* on line *9 *My code is: $mbox = imap_open("\"{mail.mdah.state.ms.us/imap/novalidate-cert:143}INBOX\", \"".$_POST["username"]."\", \"".$_POST["passwor

Re: [PHP] best way for PHP page

2008-01-02 Thread Sancar Saran
On Wednesday 02 January 2008 09:17:50 Alain Roger wrote: > Hi, > > i would like to improve my coding quality when i use PHP code and for that > i would request your help. > in my web developer experience, i have to confess that i've never succeeded > in spliting PHP code from HTML code. > > i mean

Re: [PHP] best way for PHP page

2008-01-02 Thread Casey
On Jan 1, 2008 11:17 PM, Alain Roger <[EMAIL PROTECTED]> wrote: > Hi, > > i would like to improve my coding quality when i use PHP code and for that i > would request your help. > in my web developer experience, i have to confess that i've never succeeded > in spliting PHP code from HTML code. > >